Esempio n. 1
0
 def testSetAttrToPrimitive(self):
     """
     Test set attr created with to_primitive param
     """
     bifacewattr = BasicInterfaceWithAttributes() 
     bifacewattr.my_attr_to_primitive = ANOTHER_RESPONSE
     self.assertTrue(isinstance(bifacewattr.my_attr_produces_method, AnotherReturnType), "attr must return class passed to to_primitive")