예제 #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)
예제 #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)
예제 #3
0
파일: registry.py 프로젝트: AIdrifter/samba
 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)