From 9477cddfeb9adc03e039155ce3b8a0b560f71098 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: May 30 2016 14:44:08 +0000 Subject: 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 --- diff --git a/ipatests/test_ipaserver/test_topology_plugin.py b/ipatests/test_ipaserver/test_topology_plugin.py index 6407f3e..eaa7b01 100644 --- a/ipatests/test_ipaserver/test_topology_plugin.py +++ b/ipatests/test_ipaserver/test_topology_plugin.py @@ -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]))