Esempio n. 1
0
 def test_setDescriptionExceptionBadMap(self):
     attachment = Attachment(description=LanguageMap({"en-US": "test"}))
     with self.assertRaises(ValueError):
         attachment.description = ({"bad map"})
 def test_setDescriptionExceptionBadMap(self):
     attachment = Attachment(description=LanguageMap({"en-US": "test"}))
     with self.assertRaises(ValueError):
         attachment.description = ({"bad map"})
Esempio n. 3
0
 def test_setDescriptionExceptionNestedObject(self):
     attachment = Attachment(description=LanguageMap({"en-US": "test"}))
     with self.assertRaises(TypeError):
         attachment.description = ({"fr-CA": {"nested": "object"}})
     self.languageMapVerificationHelper(attachment.description)
 def test_setDescriptionExceptionNestedObject(self):
     attachment = Attachment(description=LanguageMap({"en-US": "test"}))
     with self.assertRaises(TypeError):
         attachment.description = ({"fr-CA": {"nested": "object"}})
     self.languageMapVerificationHelper(attachment.description)