Permalink
Browse files

Cleanup indexed CF in CF and CFMap tests

  • Loading branch information...
1 parent fe7adca commit 725e26e00095ad27627f7297f68ba5cedaa05712 @thobbs thobbs committed Apr 12, 2011
Showing with 6 additions and 0 deletions.
  1. +4 −0 tests/test_columnfamily.py
  2. +2 −0 tests/test_columnfamilymap.py
@@ -16,6 +16,8 @@ def setup_module():
sys_man = SystemManager()
def teardown_module():
+ cf.truncate()
+ indexed_cf.truncate()
pool.dispose()
class TestDict(dict):
@@ -26,6 +28,8 @@ class TestColumnFamily(unittest.TestCase):
def tearDown(self):
for key, columns in cf.get_range():
cf.remove(key)
+ for key, columns in indexed_cf.get_range():
+ cf.remove(key)
def test_empty(self):
key = 'TestColumnFamily.test_empty'
@@ -19,6 +19,8 @@ def setup_module():
sys_man = SystemManager()
def teardown_module():
+ cf.truncate()
+ indexed_cf.truncate()
pool.dispose()
class TestUTF8(object):

0 comments on commit 725e26e

Please sign in to comment.