[z3-checkins] r31896 - z3/sqlos/branch/kobold-sqlos/src/sqlos
jinty at codespeak.net
jinty at codespeak.net
Thu Aug 31 18:14:43 CEST 2006
Author: jinty
Date: Thu Aug 31 18:14:41 2006
New Revision: 31896
Modified:
z3/sqlos/branch/kobold-sqlos/src/sqlos/container.py
Log:
Add a regression test to the the SQLOSContainer, in theory this should fail now, but I cant test it because the SQLObject subversion server seems to be down.
Modified: z3/sqlos/branch/kobold-sqlos/src/sqlos/container.py
==============================================================================
--- z3/sqlos/branch/kobold-sqlos/src/sqlos/container.py (original)
+++ z3/sqlos/branch/kobold-sqlos/src/sqlos/container.py Thu Aug 31 18:14:41 2006
@@ -322,6 +322,18 @@
>>> verifyObject(ISQLObjectJoinContainer, s)
True
+ Regression tests:
+
+ Test for mutable _allowed_joins:
+
+ >>> c1 = SQLOSContainer()
+ >>> c2 = SQLOSContainer()
+ >>> c2._allowed_joins
+ []
+ >>> c1._allowed_joins.append('bobo')
+ >>> c2._allowed_joins
+ []
+
And finally call tearDown and cleanup:
>>> testdb.tearDown()
More information about the z3-checkins
mailing list