r26538: Pass path generation function around rather than base directory.
[jelmer/samba4-debian.git] / source / scripting / python / samba / tests / __init__.py
index 45588ecb5a4872055f3e26e13fc457ab7e794d4c..e213c1cc1f3c7f990d220b10f94367b9992a7ce0 100644 (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"))