[Modeling-cvs] ProjectModeling/Modeling/tests test_EditingContext_ParentChild.py,1.10,1.11
Status: Abandoned
Brought to you by:
sbigaret
|
From: <sbi...@us...> - 2003-07-17 15:16:31
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv23036/tests
Modified Files:
test_EditingContext_ParentChild.py
Log Message:
Fixed: buggy test_12a_fetchesRawRows() in test_EC_parentChild did not detect that fetching raw rows were not reflecting the changes in the parent
Index: test_EditingContext_ParentChild.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_EditingContext_ParentChild.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** test_EditingContext_ParentChild.py 16 Jul 2003 19:16:00 -0000 1.10
--- test_EditingContext_ParentChild.py 17 Jul 2003 15:16:28 -0000 1.11
***************
*** 491,501 ****
# modified objects in parent
! pjohn=ec.fetch('Executive', 'lastName == "Cleese"')[0]
! pjohn_gid=john.globalID()
john_name=pjohn.getLastName()
alternate_john_name=john_name+' -- testing'
pjohn.setLastName(alternate_john_name)
! pjohn=ec.fetch('Executive', isDeep=1, rawRows=1)[0]
! self.assertEqual(john['lastName'], alternate_john_name)
def test_12b_fetchesRawRows(self):
--- 491,501 ----
# modified objects in parent
! pjohn=parent_ec.fetch('Executive', 'lastName == "Cleese"')[0]
! pjohn_gid=pjohn.globalID()
john_name=pjohn.getLastName()
alternate_john_name=john_name+' -- testing'
pjohn.setLastName(alternate_john_name)
! cjohn=child_ec.fetch('Executive', isDeep=1, rawRows=1)[0]
! self.assertEqual(cjohn['lastName'], alternate_john_name)
def test_12b_fetchesRawRows(self):
|