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:
Petr Viktorin authored and Martin Basti committed 2016-05-30 16:44:08 +02:00
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]))