diff options
author | Ana Krivokapic <akrivoka@redhat.com> | 2013-04-15 15:15:02 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-04-19 12:46:25 +0200 |
commit | 18149fadb6a78a736d434634939074ea34bee79b (patch) | |
tree | 3a07e9060ec00c1d19fe225f8fd29e1da048f5b4 /tests/test_xmlrpc | |
parent | 4f47ac9d7f3d9cb2f1381858b05a7ba851917592 (diff) | |
download | freeipa-18149fadb6a78a736d434634939074ea34bee79b.tar.gz freeipa-18149fadb6a78a736d434634939074ea34bee79b.tar.xz freeipa-18149fadb6a78a736d434634939074ea34bee79b.zip |
Do not sort dictionaries in assert_deepequal utility function
Sorting lists of dictionaries in assert_deepequal was causing inconsistencies
in unit test execution. To fix this, do not sort lists if their elements are
dictionaries.
https://fedorahosted.org/freeipa/ticket/3562
Diffstat (limited to 'tests/test_xmlrpc')
-rw-r--r-- | tests/test_xmlrpc/test_netgroup_plugin.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_xmlrpc/test_netgroup_plugin.py b/tests/test_xmlrpc/test_netgroup_plugin.py index 7a0dc5fad..ee826b752 100644 --- a/tests/test_xmlrpc/test_netgroup_plugin.py +++ b/tests/test_xmlrpc/test_netgroup_plugin.py @@ -466,18 +466,18 @@ class test_netgroup(Declarative): result=[ { 'dn': fuzzy_netgroupdn, - 'cn': [netgroup2], - 'description': [u'Test netgroup 2'], - 'nisdomainname': [u'%s' % api.env.domain], - }, - { - 'dn': fuzzy_netgroupdn, 'memberhost_host': (host1,), 'memberhost_hostgroup': (hostgroup1,), 'cn': [netgroup1], 'description': [u'Test netgroup 1'], 'nisdomainname': [u'%s' % api.env.domain], }, + { + 'dn': fuzzy_netgroupdn, + 'cn': [netgroup2], + 'description': [u'Test netgroup 2'], + 'nisdomainname': [u'%s' % api.env.domain], + }, ], ), ), |