[Zapp-cvs-commit] ZApp/tests test_MiscDataUserBase.py,1.2,1.3 test_PGMiscDataUser.py,1.2,1.3
Brought to you by:
sspickle
|
From: <ssp...@us...> - 2003-06-18 19:11:22
|
Update of /cvsroot/zapp/ZApp/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv13885/tests
Modified Files:
test_MiscDataUserBase.py test_PGMiscDataUser.py
Log Message:
added propertysheet and attribute providers to ZApp_Misc data so we can more easily store attributes in other places!
Index: test_MiscDataUserBase.py
===================================================================
RCS file: /cvsroot/zapp/ZApp/tests/test_MiscDataUserBase.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_MiscDataUserBase.py 2 Jun 2003 16:41:38 -0000 1.2
--- test_MiscDataUserBase.py 18 Jun 2003 19:11:19 -0000 1.3
***************
*** 55,58 ****
--- 55,76 ----
assert object1.safeMiscData.getXMLAttr('x','') == 'hello?'
+
+ def test_PropertySheetProvider(self):
+
+ testString = 'prop1 test'
+ mdum = self.myApp.MiscDataUsers
+ object1 = mdum.ZApp_createNewItem()
+ object1.propertysheets.get('testProps').manage_changeProperties( prop1 = testString)
+ self.mdm.commit_subtransaction()
+ try:
+ assert object1.prop1 == testString
+ except:
+ import pdb
+ pdb.set_trace()
+
+ object1.propertysheets.get('testProps').manage_changeProperties( prop1 = testString)
+
+
+
if __name__=='__main__':
raise "RuntimeError", "This is a base class for building tests using various backend levers. It can't run on it's own!"
Index: test_PGMiscDataUser.py
===================================================================
RCS file: /cvsroot/zapp/ZApp/tests/test_PGMiscDataUser.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_PGMiscDataUser.py 2 Jun 2003 16:41:38 -0000 1.2
--- test_PGMiscDataUser.py 18 Jun 2003 19:11:19 -0000 1.3
***************
*** 11,15 ****
def setUp( self ):
MiscDataUserBase.setUp( self )
! self.myApp = getApp( self, 'GadflyZApp_Test' )
self.setUpMiscData()
--- 11,15 ----
def setUp( self ):
MiscDataUserBase.setUp( self )
! self.myApp = getApp( self, 'PGZApp_Test' )
self.setUpMiscData()
***************
*** 18,22 ****
if __name__=='__main__':
-
main(defaultTest='test_suite')
--- 18,21 ----
|