[Zope-Checkins] CVS: ZODB3/ZODB/tests - testUtils.py:1.5.6.1
Jim Fulton
jim at zope.com
Mon Jan 26 15:37:15 EST 2004
Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv23270/src/ZODB/tests
Modified Files:
Tag: zope3-zodb3-devel-branch
testUtils.py
Log Message:
Changed to test the new persistent_id function.
=== ZODB3/ZODB/tests/testUtils.py 1.5 => 1.5.6.1 ===
--- ZODB3/ZODB/tests/testUtils.py:1.5 Thu Dec 11 00:16:50 2003
+++ ZODB3/ZODB/tests/testUtils.py Mon Jan 26 15:37:15 2004
@@ -16,7 +16,6 @@
import random
import unittest
from persistent import Persistent
-import ZODB.coptimizations
NUM = 100
@@ -47,11 +46,12 @@
self.assertEquals(U64("\000\000\000\001\000\000\000\000"), 1L<<32)
def checkPersistentIdHandlesDescriptor(self):
+ from ZODB.serialize import BaseObjectWriter
class P(Persistent):
pass
- L = []
- pid = ZODB.coptimizations.new_persistent_id(None, L)
- pid(P)
+
+ writer = BaseObjectWriter(None)
+ self.assertEqual(writer.persistent_id(P), None)
def test_suite():
return unittest.makeSuite(TestUtils, 'check')
More information about the Zope-Checkins
mailing list