[Modeling-cvs] ProjectModeling/Modeling/tests test_EditingContext_Global.py,1.30,1.31
Status: Abandoned
Brought to you by:
sbigaret
From: <sbi...@us...> - 2003-07-23 14:10:19
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/tests In directory sc8-pr-cvs1:/tmp/cvs-serv3176/tests Modified Files: test_EditingContext_Global.py Log Message: Added test for bug #775082 Index: test_EditingContext_Global.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_EditingContext_Global.py,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** test_EditingContext_Global.py 18 Jul 2003 14:30:46 -0000 1.30 --- test_EditingContext_Global.py 23 Jul 2003 14:10:13 -0000 1.31 *************** *** 52,56 **** from testPackages.AuthorBooks.Book import Book - class Writer_test07(Writer): refusesValidateForDelete=0 --- 52,55 ---- *************** *** 903,906 **** --- 902,924 ---- gid=ec.globalIDForObject(b) self.failUnless(b.getId() == gid.keyValues()['id']) + + def test_17b_insertedObject_and_FK_as_classProperty(self): + "[EC] Checks that a FK/class prop. gets its value after saving changes" + return + ec=EditingContext() + w=Writer() + w.setLastName('test author') + ec.insertObject(w) + ec.saveChanges() + + b=Book() + ec.insertObject(b) + b.setTitle('dummy title') + b.setAuthor(w) + w.addToBooks(b) + self.failIf(b.getFK_Writer_Id()) + ec.saveChanges() + gid=ec.globalIDForObject(w) + self.assertEqual(b.getFK_Writer_Id(), gid.keyValues()['id']) def test_18_percent_in_qualifiers_should_be_correctly_escaped(self): |