summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-12-24 11:40:02 +0100
committerStefan Metzmacher <metze@samba.org>2010-12-24 17:31:06 +0100
commitf34e7978c2324df6d0bd325696acf4c30822a0c8 (patch)
treec476b6ec2977e0ea6efb88d30fec3522523ee544
parent628c66a15c22da48bb05c3208bfd146da16338d8 (diff)
downloadsamba-f34e7978c2324df6d0bd325696acf4c30822a0c8.tar.gz
samba-f34e7978c2324df6d0bd325696acf4c30822a0c8.tar.bz2
samba-f34e7978c2324df6d0bd325696acf4c30822a0c8.zip
s4:ldb:python/api: use only one ldb file in test_contains()
metze
-rwxr-xr-xsource4/lib/ldb/tests/python/api.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/lib/ldb/tests/python/api.py b/source4/lib/ldb/tests/python/api.py
index 6c1cb4cac2..17c3172842 100755
--- a/source4/lib/ldb/tests/python/api.py
+++ b/source4/lib/ldb/tests/python/api.py
@@ -108,9 +108,10 @@ class SimpleLdb(unittest.TestCase):
l.delete(m.dn)
def test_contains(self):
- l = ldb.Ldb(filename())
+ name = filename()
+ l = ldb.Ldb(name)
self.assertFalse(ldb.Dn(l, "dc=foo3") in l)
- l = ldb.Ldb(filename())
+ l = ldb.Ldb(name)
m = ldb.Message()
m.dn = ldb.Dn(l, "dc=foo3")
m["b"] = ["a"]