Commit 0ab444fd authored by Tres Seaver's avatar Tres Seaver

Moar coverage (eyeballed) for Length.

parent ccb453f0
......@@ -72,6 +72,14 @@ class LengthTestCase(unittest.TestCase):
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment