[Checkins] SVN: BTrees/branches/py3k/ Coverage for normal cases.
Tres Seaver
cvs-admin at zope.org
Wed Dec 12 14:40:58 UTC 2012
Log message for revision 128613:
Coverage for normal cases.
Changed:
_U BTrees/branches/py3k/
U BTrees/branches/py3k/BTrees/tests/test_Length.py
-=-
Modified: BTrees/branches/py3k/BTrees/tests/test_Length.py
===================================================================
--- BTrees/branches/py3k/BTrees/tests/test_Length.py 2012-12-12 14:40:57 UTC (rev 128612)
+++ BTrees/branches/py3k/BTrees/tests/test_Length.py 2012-12-12 14:40:58 UTC (rev 128613)
@@ -53,6 +53,16 @@
length = self._makeOne()
self.assertEqual(length._p_resolveConflict(5, 7, 9), 11)
+ def test_change_w_positive_delta(self):
+ length = self._makeOne()
+ length.change(3)
+ self.assertEqual(length.value, 3)
+
+ def test_change_w_negative_delta(self):
+ length = self._makeOne()
+ length.change(-3)
+ self.assertEqual(length.value, -3)
+
def test_change_overflows_to_long(self):
import sys
try:
More information about the checkins
mailing list