Esempio n. 1
0
 def test_hive_open_ldb(self):
     # we don't need to provide a valid path because we segfault first
     try:
         registry.open_ldb('', credentials=42)
     except ldb.LdbError as e:
         print("failed with %s" % e)
Esempio n. 2
0
 def setUp(self):
     super(HiveTests, self).setUp()
     self.hive_path = os.path.join(self.tempdir, "ldb_new.ldb")
     self.hive = registry.open_ldb(self.hive_path)
Esempio n. 3
0
 def setUp(self):
     super(HiveTests, self).setUp()
     self.hive_path = os.path.join(self.tempdir, "ldb_new.ldb")
     self.hive = registry.open_ldb(self.hive_path)