git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0788797
)
Fix ldap.py test on systems that *can* find the record (the search fails here locally).
author
Jelmer Vernooij
<jelmer@samba.org>
Thu, 8 Jan 2009 11:51:19 +0000
(12:51 +0100)
committer
Jelmer Vernooij
<jelmer@samba.org>
Thu, 8 Jan 2009 11:51:19 +0000
(12:51 +0100)
source4/lib/ldb/tests/python/ldap.py
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/tests/python/ldap.py
b/source4/lib/ldb/tests/python/ldap.py
index 12a2b3f8c3c517c5ae835693fd04ecdf4de39570..a30273fc66804ad5989dcc7759af8a685749860e 100755
(executable)
--- a/
source4/lib/ldb/tests/python/ldap.py
+++ b/
source4/lib/ldb/tests/python/ldap.py
@@
-891,7
+891,7
@@
member: CN=ldaptestutf8user èùéìòà,CN=Users,""" + self.base_dn + """
res = ldb.search(expression="(&(cn=ldaptestutf8user ÈÙÉÌÒÀ)(objectClass=user))")
self.assertEquals(len(res), 1, "Could not find (&(cn=ldaptestutf8user ÈÙÉÌÒÀ)(objectClass=user))")
res = ldb.search(expression="(&(cn=ldaptestutf8user ÈÙÉÌÒÀ)(objectClass=user))")
self.assertEquals(len(res), 1, "Could not find (&(cn=ldaptestutf8user ÈÙÉÌÒÀ)(objectClass=user))")
- self.assertEquals(
res[0].dn
, ("CN=ldaptestutf8user èùéìòà,CN=Users," + self.base_dn))
+ self.assertEquals(
str(res[0].dn)
, ("CN=ldaptestutf8user èùéìòà,CN=Users," + self.base_dn))
self.assertEquals(str(res[0]["cn"]), "ldaptestutf8user èùéìòà")
self.assertEquals(str(res[0]["name"]), "ldaptestutf8user èùéìòà")
self.assertEquals(list(res[0]["objectClass"]), ["top", "person", "organizationalPerson", "user"])
self.assertEquals(str(res[0]["cn"]), "ldaptestutf8user èùéìòà")
self.assertEquals(str(res[0]["name"]), "ldaptestutf8user èùéìòà")
self.assertEquals(list(res[0]["objectClass"]), ["top", "person", "organizationalPerson", "user"])