summaryrefslogtreecommitdiffstats
path: root/tests/test_util.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-08-30 23:40:17 -0400
committerMartin Kosek <mkosek@redhat.com>2011-08-31 11:18:33 +0200
commitf31da3bfa26c395fdda600511723ccb1989b6083 (patch)
tree5eeec128d3f9482e51c63ff0160b3489fc6b873b /tests/test_util.py
parent8b27f1ad273ee5420657194d82c021022c069447 (diff)
downloadfreeipa-f31da3bfa26c395fdda600511723ccb1989b6083.tar.gz
freeipa-f31da3bfa26c395fdda600511723ccb1989b6083.tar.xz
freeipa-f31da3bfa26c395fdda600511723ccb1989b6083.zip
Sort lists so order is predictable and tests pass as expected.
Related to https://fedorahosted.org/freeipa/ticket/1272
Diffstat (limited to 'tests/test_util.py')
-rw-r--r--tests/test_util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_util.py b/tests/test_util.py
index 0a253adfa..f87822a22 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -180,7 +180,7 @@ def test_assert_deepequal():
]
e = raises(AssertionError, f, a, b, 'foo')
assert str(e) == TYPE % (
- 'foo', unicode, str, u'hello', 'hello', (0,)
+ 'foo', unicode, str, u'hello', 'hello', (2,)
)
b = [
@@ -200,7 +200,7 @@ def test_assert_deepequal():
]
e = raises(AssertionError, f, a, b, 'foo')
assert str(e) == TYPE % (
- 'foo', int, float, 18, 18.0, (2,)
+ 'foo', int, float, 18, 18.0, (0,)
)
# List length mismatch