Esempio n. 1
0
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()
Esempio n. 2
0
 def setUp(self):
     print("ShelfSimIndexTest")
     self.sim_index = ShelfSimIndex("/tmp/test_dbm", 'n')
     super(ShelfSimIndexTest, self).setUp()