class ShelfSimIndexTest(SimIndexTest, unittest.TestCase): ''' All tests hitting the SimIndex interface are in the parent class, SimIndexTest Tests for api's not in parent class are tested separately here. This is so we can reuse test code across all implementations of SimIndex. ''' def setUp(self): print("ShelfSimIndexTest") self.sim_index = ShelfSimIndex("/tmp/test_dbm", 'n') super(ShelfSimIndexTest, self).setUp() def tearDown(self): self.sim_index.close()
def setUp(self): print("ShelfSimIndexTest") self.sim_index = ShelfSimIndex("/tmp/test_dbm", 'n') super(ShelfSimIndexTest, self).setUp()