Commit 684b8314 authored by Jim Fulton's avatar Jim Fulton

Wrapped some long lines.

parent 8a7f79e9
...@@ -594,7 +594,8 @@ class EstimatedSizeTests(ZODB.tests.util.TestCase): ...@@ -594,7 +594,8 @@ class EstimatedSizeTests(ZODB.tests.util.TestCase):
transaction.savepoint() transaction.savepoint()
new_size = obj._p_estimated_size new_size = obj._p_estimated_size
self.assert_(new_size > size) self.assert_(new_size > size)
self.assertEqual(cache.total_estimated_size, cache_size + new_size - size) self.assertEqual(cache.total_estimated_size,
cache_size + new_size - size)
def test_size_set_on_load(self): def test_size_set_on_load(self):
c = self.db.open() # new connection c = self.db.open() # new connection
...@@ -607,11 +608,11 @@ class EstimatedSizeTests(ZODB.tests.util.TestCase): ...@@ -607,11 +608,11 @@ class EstimatedSizeTests(ZODB.tests.util.TestCase):
size = obj._p_estimated_size size = obj._p_estimated_size
self.assert_(size > 0) self.assert_(size > 0)
self.assertEqual(cache.total_estimated_size, cache_size + size) self.assertEqual(cache.total_estimated_size, cache_size + size)
# we test here as well that the deactivation works reduced the cache size # we test here as well that the deactivation works reduced the cache
# size
obj._p_deactivate() obj._p_deactivate()
self.assertEqual(cache.total_estimated_size, cache_size) self.assertEqual(cache.total_estimated_size, cache_size)
def test_configuration(self): def test_configuration(self):
# verify defaults .... # verify defaults ....
expected = 0 expected = 0
......
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