summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-09-24 01:34:10 -0400
committerSimo Sorce <idra@samba.org>2008-09-24 01:42:30 -0400
commit7b20cbb1152af7f3779cbb0dd74d939d8f1637c0 (patch)
tree7bb95c0a9c8e7c4448b430f8f378a4b08779adde /source4
parent1ca2e4b99fadac78fd9c58ea9ec9973f19659203 (diff)
downloadsamba-7b20cbb1152af7f3779cbb0dd74d939d8f1637c0.tar.gz
samba-7b20cbb1152af7f3779cbb0dd74d939d8f1637c0.tar.bz2
samba-7b20cbb1152af7f3779cbb0dd74d939d8f1637c0.zip
Fix python test, we can't check only the first member, because the order
is not guaranteed
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/lib/ldb/tests/python/ldap.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/lib/ldb/tests/python/ldap.py b/source4/lib/ldb/tests/python/ldap.py
index bc6f80e856..6c910b63f1 100755
--- a/source4/lib/ldb/tests/python/ldap.py
+++ b/source4/lib/ldb/tests/python/ldap.py
@@ -781,7 +781,10 @@ member: cn=ldaptestuser4,cn=ldaptestcontainer,""" + self.base_dn + """
self.assertTrue("objectGuid" not in res[0])
self.assertTrue("whenCreated" in res[0])
self.assertTrue("nTSecurityDescriptor" in res[0])
- self.assertEquals(res[0]["member"][0].upper(), ("CN=ldaptestuser2,CN=Users," + self.base_dn).upper())
+ memberUP = []
+ for m in res[0]["member"]:
+ memberUP.append(m.upper())
+ self.assertTrue(("CN=ldaptestuser2,CN=Users," + self.base_dn).upper() in memberUP)
ldb.modify_ldif("""
dn: cn=ldaptestgroup2,cn=users,""" + self.base_dn + """