def tearDown(self):
shutil.rmtree(self.testdir)
super(SimpleLdb, self).tearDown()
+ # Ensure the LDB is closed now, so we close the FD
+ del(self.ldb)
+
def test_connect(self):
ldb.Ldb(self.filename)
shutil.rmtree(self.testdir)
super(SearchTests, self).tearDown()
+ # Ensure the LDB is closed now, so we close the FD
+ del(self.l)
+
+
def setUp(self):
super(SearchTests, self).setUp()
self.testdir = tempdir()
shutil.rmtree(self.testdir)
super(AddModifyTests, self).tearDown()
+ # Ensure the LDB is closed now, so we close the FD
+ del(self.l)
+
def setUp(self):
super(AddModifyTests, self).setUp()
self.testdir = tempdir()
super(DnTests, self).setUp()
self.ldb = ldb.Ldb()
+ def tearDown(self):
+ super(DnTests, self).tearDown()
+ del(self.ldb)
+
def test_set_dn_invalid(self):
x = ldb.Message()
def assign():
def tearDown(self):
shutil.rmtree(self.testdir)
super(LdbResultTests, self).tearDown()
+ # Ensure the LDB is closed now, so we close the FD
+ del(self.l)
def test_return_type(self):
res = self.l.search()