diff options
author | Petr Viktorin <pviktori@redhat.com> | 2016-05-06 17:35:26 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-05-30 16:44:08 +0200 |
commit | 9477cddfeb9adc03e039155ce3b8a0b560f71098 (patch) | |
tree | 749bc8f163fa1408fb10434b8a4fce40009cb3bd /ipatests/test_ipaserver | |
parent | 75d0a73bbc426e9b6cabc38f2e932d701b25a762 (diff) | |
download | freeipa-9477cddfeb9adc03e039155ce3b8a0b560f71098.tar.gz freeipa-9477cddfeb9adc03e039155ce3b8a0b560f71098.tar.xz freeipa-9477cddfeb9adc03e039155ce3b8a0b560f71098.zip |
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>
Diffstat (limited to 'ipatests/test_ipaserver')
-rw-r--r-- | ipatests/test_ipaserver/test_topology_plugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipatests/test_ipaserver/test_topology_plugin.py b/ipatests/test_ipaserver/test_topology_plugin.py index 6407f3e6f..eaa7b01cb 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])) |