mirror of
https://github.com/bringout/oca-ocb-security.git
synced 2026-04-22 14:12:02 +02:00
Initial commit: Security packages
This commit is contained in:
commit
bb469e4763
1399 changed files with 278378 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from odoo.tests.common import BaseCase
|
||||
from odoo.addons.google_calendar.utils.google_calendar import GoogleEvent
|
||||
|
||||
|
||||
class TestGoogleEvent(BaseCase):
|
||||
def test_google_event_readonly(self):
|
||||
event = GoogleEvent()
|
||||
with self.assertRaises(TypeError):
|
||||
event._events['foo'] = 'bar'
|
||||
with self.assertRaises(AttributeError):
|
||||
event._events.update({'foo': 'bar'})
|
||||
with self.assertRaises(TypeError):
|
||||
dict.update(event._events, {'foo': 'bar'})
|
||||
Loading…
Add table
Add a link
Reference in a new issue