1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-11 08:23:49 +03:00

r26538: Pass path generation function around rather than base directory.

This commit is contained in:
Jelmer Vernooij
2007-12-19 23:27:38 +01:00
committed by Stefan Metzmacher
parent e91fe76d29
commit 5f921af41e
6 changed files with 164 additions and 148 deletions

View File

@@ -67,6 +67,6 @@ class SubstituteVarTestCase(unittest.TestCase):
class LdbExtensionTests(TestCaseInTempDir):
def test_searchone(self):
l = samba.Ldb(self.tempdir + "/searchone.ldb")
l.add({"dn": ldb.Dn(l, "foo=dc"), "bar": "bla"})
l.add({"dn": "foo=dc", "bar": "bla"})
self.assertEquals("bla", l.searchone(ldb.Dn(l, "foo=dc"), "bar"))