[Zope3-checkins] CVS: Zope3/src/persistence/tests -
test_persistence.py:1.12
Sidnei da Silva
sidnei at x3ng.com.br
Wed Sep 24 17:01:09 EDT 2003
Update of /cvs-repository/Zope3/src/persistence/tests
In directory cvs.zope.org:/tmp/cvs-serv11227/src/persistence/tests
Modified Files:
test_persistence.py
Log Message:
Small cleaning on PersistentSchemaUtility + whitespace cleaning. Use setitem to wrap the field in an ContainedProxy
=== Zope3/src/persistence/tests/test_persistence.py 1.11 => 1.12 ===
--- Zope3/src/persistence/tests/test_persistence.py:1.11 Mon Jun 30 11:52:48 2003
+++ Zope3/src/persistence/tests/test_persistence.py Wed Sep 24 17:00:38 2003
@@ -141,7 +141,7 @@
dm = BrokenDM()
p._p_jar = dm
p._p_deactivate() # make it a ghost
-
+
try:
p._p_activate()
except NotImplementedError:
@@ -246,7 +246,7 @@
self.assert_(shouldHaveDict.__dictoffset__ <> 0)
self.assert_(p_shouldHaveDict.__dictoffset__ <> 0)
-
+
def testBasicTypeStructure(self):
# test that a persistent class has a sane C type structure
# use P (defined below) as simplest example
@@ -263,7 +263,7 @@
p._p_oid = '\0\0\0\0\0\0hi'
dm = DM()
p._p_jar = dm
-
+
def typeerr(*args, **kwargs):
self.assertRaises(TypeError, p, *args, **kwargs)
More information about the Zope3-Checkins
mailing list