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)
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)