summaryrefslogtreecommitdiff
path: root/larch
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-11-06 20:05:35 +0000
committerLars Wirzenius <liw@liw.fi>2013-11-06 20:22:55 +0000
commitcf107f03af2038eb16dc4d30f9a8273f6560fd10 (patch)
tree7c930b7b85ef2921759a5e2442ee6763ed25d47d /larch
parent0fc9df23884c5cacb6be2f9866bd5c8a70f8f5e1 (diff)
downloadlarch-cf107f03af2038eb16dc4d30f9a8273f6560fd10.tar.gz
Delete wrong tests
Since we no longer treat a refcount of 0 specially, these tests no longer make any sense.
Diffstat (limited to 'larch')
-rw-r--r--larch/refcountstore_tests.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/larch/refcountstore_tests.py b/larch/refcountstore_tests.py
index f4f4ed1..f18e29b 100644
--- a/larch/refcountstore_tests.py
+++ b/larch/refcountstore_tests.py
@@ -68,17 +68,6 @@ class RefcountStoreTests(unittest.TestCase):
self.rs.set_refcount(123, 1)
self.assertEqual(self.rs.get_refcount(123), 1)
- def test_does_not_set_refcount_if_zero(self):
- self.rs.set_refcount(123, 0)
- self.assertFalse(123 in self.rs.refcounts)
- self.assertEqual(self.rs.get_refcount(123), 0)
-
- def test_removes_refcount_that_drops_to_zero(self):
- self.rs.set_refcount(123, 1)
- self.rs.set_refcount(123, 0)
- self.assertFalse(123 in self.rs.refcounts)
- self.assertEqual(self.rs.get_refcount(123), 0)
-
def test_updates_refcount(self):
self.rs.set_refcount(123, 1)
self.rs.set_refcount(123, 2)