[Zope3-checkins] CVS: Zope3/src/persistence/tests - test_persistence.py:1.4

Jeremy Hylton jeremy@zope.com
Mon, 24 Feb 2003 17:58:21 -0500


Update of /cvs-repository/Zope3/src/persistence/tests
In directory cvs.zope.org:/tmp/cvs-serv19069

Modified Files:
	test_persistence.py 
Log Message:
Check the state after activation.


=== Zope3/src/persistence/tests/test_persistence.py 1.3 => 1.4 ===
--- Zope3/src/persistence/tests/test_persistence.py:1.3	Mon Feb 24 17:03:52 2003
+++ Zope3/src/persistence/tests/test_persistence.py	Mon Feb 24 17:58:20 2003
@@ -111,6 +111,7 @@
         p._p_deactivate()
         # XXX does this really test the activate method?
         p._p_activate()
+        self.assertEqual(p._p_state, 0)
         self.assertEqual(p.x, 42)
 
     def testDeactivate(self):
@@ -122,9 +123,9 @@
         p._p_jar = dm
         p._p_changed = 0
         p._p_deactivate()
-        # XXX does this really test the activate method?
         self.assertEqual(p._p_state, 3)
         p._p_activate()
+        self.assertEqual(p._p_state, 0)
         self.assertEqual(p.x, 42)
 
     def testInterface(self):