Fix test: sort when comparing file collection

This commit is contained in:
Michal Siedlaczek 2017-11-04 20:03:53 -04:00
parent 9ea986a569
commit 51a61cf02d

View File

@ -85,7 +85,7 @@ def test_available_languages(tmpdir, monkeypatch):
monkeypatch.setattr(dictcli, 'language_list_from_api', lambda: [
(lang.code, lang.remote_filename) for lang in langs()
])
assert dictcli.available_languages() == [
assert sorted(dictcli.available_languages()) == [
dictcli.Language(
'af-ZA', 'Afrikaans (South Africa)',
'af-ZA-3-0', None),