mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-25 14:40:16 -05:00
test_topology_plugin: Don't rely on order of an attribute's values
Order of Python dicts/sets was always unreliable, but in Python 3 it's usually different every time. This affects the order in which values of a LDAP attribute appear. LDAP values are also specified to be unordered. Part of the work for: https://fedorahosted.org/freeipa/ticket/4985 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
1 parent
75d0a73bbc
commit
9477cddfeb
1 file changed
+1
-1
@@ -72,4 +72,4 @@ class TestTopologyPlugin(object):
|
||||
entry = self.conn.get_entry(topoplugindn)
|
||||
assert(set(entry.keys()) == set(pluginattrs.keys()))
|
||||
for i in checkvalues:
|
||||
assert(pluginattrs[i] == entry[i])
|
||||
assert(set(pluginattrs[i]) == set(entry[i]))
|
||||
Reference in new issue
Block a user