[Zodb-checkins] SVN: ZODB/branches/alienoid-btrees_pop/src/BTrees/tests/testBTrees.py added more tests

Ruslan Spivak rspivak at nuxeo.com
Tue Aug 30 17:27:05 EDT 2005


Log message for revision 38175:
  added more tests

Changed:
  U   ZODB/branches/alienoid-btrees_pop/src/BTrees/tests/testBTrees.py

-=-
Modified: ZODB/branches/alienoid-btrees_pop/src/BTrees/tests/testBTrees.py
===================================================================
--- ZODB/branches/alienoid-btrees_pop/src/BTrees/tests/testBTrees.py	2005-08-30 21:25:06 UTC (rev 38174)
+++ ZODB/branches/alienoid-btrees_pop/src/BTrees/tests/testBTrees.py	2005-08-30 21:27:04 UTC (rev 38175)
@@ -642,6 +642,10 @@
         self.assertEqual(t.pop(1), 3)
         self.assertEqual(len(t), 0)
 
+        # If key is present, return value bypassing default
+        t[1] = 3
+        self.assertEqual(t.pop(1, 7), 3)
+
         # Pop only one item
         t[1] = 3
         t[2] = 4



More information about the Zodb-checkins mailing list