示例#1
0
文件: engines_test.py 项目: dw/acid
 def tearDownClass(cls):
     cls.e = None
     rm_rf('test.lmdb')
示例#2
0
文件: engines_test.py 项目: dw/acid
 def tearDownClass(cls):
     cls.e.abort()
     cls.engine.close()
     cls.e = None
     rm_rf('test.ldb')
示例#3
0
文件: engines_test.py 项目: dw/acid
 def _setUpClass(cls):
     rm_rf('test.lmdb')
     cls.env = lmdb.open('test.lmdb')
     cls.engine = acid.engines.LmdbEngine(cls.env)
     cls.e = cls.engine.begin(write=True)
示例#4
0
文件: engines_test.py 项目: dw/acid
 def _setUpClass(cls):
     rm_rf('test.ldb')
     cls.engine = acid.engines.PlyvelEngine(
         name='test.ldb', create_if_missing=True)
     cls.e = cls.engine.begin(write=True)
示例#5
0
 def tearDownClass(cls):
     cls.e = None
     rm_rf('test.lmdb')
示例#6
0
 def _setUpClass(cls):
     rm_rf('test.lmdb')
     cls.env = lmdb.open('test.lmdb')
     cls.engine = acid.engines.LmdbEngine(cls.env)
     cls.e = cls.engine.begin(write=True)
示例#7
0
 def tearDownClass(cls):
     cls.e.abort()
     cls.engine.close()
     cls.e = None
     rm_rf('test.ldb')
示例#8
0
 def _setUpClass(cls):
     rm_rf('test.ldb')
     cls.engine = acid.engines.PlyvelEngine(name='test.ldb',
                                            create_if_missing=True)
     cls.e = cls.engine.begin(write=True)