diff options
Diffstat (limited to 'test/test_util.py')
-rw-r--r-- | test/test_util.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_util.py b/test/test_util.py index c83ac98..a86bf07 100644 --- a/test/test_util.py +++ b/test/test_util.py @@ -17,12 +17,12 @@ def test_split_path() -> None: def test_find(maildir: str) -> None: - assert [split_path(p)[-3:] for p in find(maildir, type='f')] == [ - [b'mail', b'cur', b'1691189956.3013485_5.gandalf:2,RS'], - [b'mail', b'cur', b'1691189958.3013485_7.gandalf:2,S'], - [b'mail', b'cur', b'1691314589.3192599_3.gandalf:2,S']] - assert [split_path(p)[-1] for p in find(maildir, type='d')] \ - == [b'mail', b'cur', b'new', b'tmp'] + assert sorted([split_path(p)[-3:] for p in find(maildir, type='f')]) == [ + [b'mail', b'cur', b'1691189956.3013485_5.gandalf:2,RS'], + [b'mail', b'cur', b'1691189958.3013485_7.gandalf:2,S'], + [b'mail', b'cur', b'1691314589.3192599_3.gandalf:2,S']] + assert sorted([split_path(p)[-1] for p in find(maildir, type='d')]) \ + == [b'cur', b'mail', b'new', b'tmp'] def test_cwd() -> None: |