def test_validate_raise_false(self): instance = ZoopObjectFactory(id=1) self.assertIsInstance(instance, ZoopObject) instance.id = None instance.validate_fields(raise_exception=False)
def test_validate_allow_empty(self): instance = ZoopObjectFactory(allow_empty=True) self.assertIsInstance(instance, ZoopObject) instance.validate_fields()