mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Replace assertItemsEqual
with assertSequenceEqual
- Add sorting for both lists - #259 Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
34a152c794
commit
c7e044373f
1 changed files with 5 additions and 3 deletions
|
@ -90,9 +90,11 @@ class TestCase(BaseTestCase):
|
|||
actual = interval[key]
|
||||
|
||||
if isinstance(actual, list):
|
||||
self.assertItemsEqual(actual,
|
||||
expected,
|
||||
message.format(key, description, expected, actual))
|
||||
actual.sort()
|
||||
expected.sort()
|
||||
self.assertSequenceEqual(actual,
|
||||
expected,
|
||||
message.format(key, description, expected, actual))
|
||||
else:
|
||||
self.assertEqual(actual,
|
||||
expected,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue