def test_01(self): emp = Employee() emp.first_name = "John" self.failIf(not emp.is_dirty()) self.failIf(emp._pyport_dirty_list != {"first_name": 1})
def test_02(self): emp = Employee() emp.first_name = "John" emp.set_dirty(False) self.failIf(emp._pyport_dirty)
def test_attribute_assign(self): emp = Employee() emp.first_name = "John" self.failIf(emp.first_name != "John") self.failIf(emp._pyport_data["first_name"] != "John")