def test_setDescriptionExceptionBadMap(self): attachment = Attachment(description=LanguageMap({"en-US": "test"})) with self.assertRaises(ValueError): attachment.description = ({"bad map"})
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)