Esempio n. 1
0
 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})
Esempio n. 2
0
 def test_02(self):
     emp = Employee()
     emp.first_name = "John"
     emp.set_dirty(False)
     self.failIf(emp._pyport_dirty)
Esempio n. 3
0
 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")