[Zope3-checkins] CVS: ZODB4/src/zodb/storage/tests - basic.py:1.9.24.1

Jeremy Hylton jeremy@zope.com
Thu, 19 Jun 2003 15:13:34 -0400


Update of /cvs-repository/ZODB4/src/zodb/storage/tests
In directory cvs.zope.org:/tmp/cvs-serv27141

Modified Files:
      Tag: ZODB3-2-merge
	basic.py 
Log Message:
Port two new tests from ZODB3.


=== ZODB4/src/zodb/storage/tests/basic.py 1.9 => 1.9.24.1 ===
--- ZODB4/src/zodb/storage/tests/basic.py:1.9	Thu Mar 20 18:01:41 2003
+++ ZODB4/src/zodb/storage/tests/basic.py	Thu Jun 19 15:13:33 2003
@@ -197,3 +197,20 @@
         self._storage.store(oid, None, data, refs, '', t)
         self._storage.tpcVote(t)
         self._storage.tpcFinish(t)
+
+    def testNote(self):
+        oid = self._storage.newObjectId()
+        t = Transaction()
+        self._storage.tpcBegin(t)
+        t.note('this is a test')
+        data, refs = zodb_pickle(MinPO(5))
+        self._storage.store(oid, ZERO, data, refs, '', t)
+        self._storage.tpcVote(t)
+        self._storage.tpcFinish(t)
+
+    def testGetExtensionMethods(self):
+        m = self._storage.getExtensionMethods()
+        self.assertEqual(type(m),type({}))
+        for k,v in m.items():
+            self.assertEqual(v,None)
+            self.assert_(callable(getattr(self._storage,k)))