[Zodb-checkins] CVS: Zope/lib/python/BTrees/tests - testBTrees.py:1.27.54.1

Matt Behrens matt@zigg.com
Wed, 29 May 2002 15:45:51 -0400


Update of /cvs-repository/Zope/lib/python/BTrees/tests
In directory cvs.zope.org:/tmp/cvs-serv18366/lib/python/BTrees/tests

Modified Files:
      Tag: zigg_unix-install-control-config-branch
	testBTrees.py 
Log Message:
Merge in HEAD (except setup.py... gotta chat about that one) :-)


=== Zope/lib/python/BTrees/tests/testBTrees.py 1.27 => 1.27.54.1 ===
         self.t[None] = 1
 
+    def testEmptyFirstBucketReportedByGuido(self):
+        b = self.t
+        for i in xrange(29972): # reduce to 29971 and it works
+            b[i] = i
+        for i in xrange(30): # reduce to 29 and it works
+            del b[i]
+            b[i+40000] = i
+
+        self.assertEqual(b.keys()[0], 30)
+
 class TestOOBTrees(BTreeTests, TestCase):
     def setUp(self):
         self.t = OOBTree()