[Checkins] SVN: BTrees/branches/pure_python/ Moar coverage (eyeballed) for Length.

Tres Seaver cvs-admin at zope.org
Sun Nov 11 19:20:49 UTC 2012


Log message for revision 128231:
  Moar coverage (eyeballed) for Length.

Changed:
  _U  BTrees/branches/pure_python/
  U   BTrees/branches/pure_python/BTrees/tests/test_Length.py

-=-
Modified: BTrees/branches/pure_python/BTrees/tests/test_Length.py
===================================================================
--- BTrees/branches/pure_python/BTrees/tests/test_Length.py	2012-11-11 19:20:46 UTC (rev 128230)
+++ BTrees/branches/pure_python/BTrees/tests/test_Length.py	2012-11-11 19:20:49 UTC (rev 128231)
@@ -72,6 +72,14 @@
         self.assertEqual(length(), minint - 1)
         self.assert_(type(length()) is long)
 
+    def test___call___no_args(self):
+        length = self._makeOne(42)
+        self.assertEqual(length(), 42)
+
+    def test___call___w_args(self):
+        length = self._makeOne(42)
+        self.assertEqual(length(0, None, (), [], {}), 42)
+
     def test_lp_516653(self):
         # Test for https://bugs.launchpad.net/zodb/+bug/516653
         import copy



More information about the checkins mailing list