def test_detect_address(self): d = {'xsi:type': Address._XSI_TYPE} obj = ObjectPropertiesFactory.from_dict(d) self.assertTrue(isinstance(obj, ObjectProperties)) self.assertTrue(isinstance(obj, Address))
def test_empty_dict(self): self.assertEqual(None, ObjectPropertiesFactory.from_dict({}))