[Modeling-cvs] ProjectModeling/Modeling/tests test_EditingContext_Global_Inheritance.py,1.18,1.19
Status: Abandoned
Brought to you by:
sbigaret
From: <sbi...@us...> - 2003-08-03 11:15:55
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/tests In directory sc8-pr-cvs1:/tmp/cvs-serv26719/tests Modified Files: test_EditingContext_Global_Inheritance.py Log Message: Updated tests for snapshot_raw Index: test_EditingContext_Global_Inheritance.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_EditingContext_Global_Inheritance.py,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** test_EditingContext_Global_Inheritance.py 28 Jul 2003 06:53:33 -0000 1.18 --- test_EditingContext_Global_Inheritance.py 3 Aug 2003 11:15:39 -0000 1.19 *************** *** 693,698 **** --- 693,702 ---- # Not computed before saveChanges() + self.failUnless(holidays.snapshot_raw().has_key('fkEmployeeId')) self.assertEqual(holidays.snapshot_raw()['fkEmployeeId'], None) ec.saveChanges() + #print holidays.snapshot_raw() + # We check here that snapshot_raw() is able to find the value + # for the FK by examining the database's cache. self.assertEqual(holidays.snapshot_raw()['fkEmployeeId'], emp.globalID().keyValues()['id']) *************** *** 702,708 **** --- 706,714 ---- self._test_10_class_employee=Employee.Employee self._test_13_toMany_with_no_inverse__snapshot_row() + self._test_10_class_employee=SalesClerk self._test_13_toMany_with_no_inverse__snapshot_row() + def tearDown(self): """ |