summaryrefslogtreecommitdiff
path: root/lib/ldb/tests
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-07-06 20:41:10 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-07-06 22:45:33 +1000
commit8d99b398d923d924088d4682a97bae38ccda0b0d (patch)
tree463b6b9219a3545af169627e3469cb821a032997 /lib/ldb/tests
parent7285ed586f129d45843f98c359003d9ac88cf5cb (diff)
downloadsamba-8d99b398d923d924088d4682a97bae38ccda0b0d.tar.gz
samba-8d99b398d923d924088d4682a97bae38ccda0b0d.tar.bz2
samba-8d99b398d923d924088d4682a97bae38ccda0b0d.zip
pyldb: Fix dn concat operation to be the other way around
This now concatonates Dn(ldb, "cn=config") + Dn(ldb, "dc=samba,dc=org") as "cn=config,dc=samba,dc=org" Andrew Bartlett
Diffstat (limited to 'lib/ldb/tests')
-rwxr-xr-xlib/ldb/tests/python/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldb/tests/python/api.py b/lib/ldb/tests/python/api.py
index 7cd8f0364e..d04d0cc5ed 100755
--- a/lib/ldb/tests/python/api.py
+++ b/lib/ldb/tests/python/api.py
@@ -414,7 +414,7 @@ class DnTests(TestCase):
def test_add(self):
x = ldb.Dn(self.ldb, "dc=foo24")
y = ldb.Dn(self.ldb, "bar=bla")
- self.assertEquals("dc=foo24,bar=bla", str(y + x))
+ self.assertEquals("dc=foo24,bar=bla", str(x + y))
def test_parse_ldif(self):
msgs = self.ldb.parse_ldif("dn: foo=bar\n")