Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
Update test_LONG_wikipedia.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Jul 24, 2021
1 parent 2bedf66 commit 193e324
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions _unittests/ut_mokadi/test_LONG_wikipedia.py
Expand Up @@ -40,8 +40,11 @@ def test_dictionary_synonym_travail(self):
res = synonyms_wiktionary("travail")
self.assertTrue(isinstance(res, list))
self.assertIn(len(res), (9, 10))
self.assertEqual(res, ['boulot', 'chagrin', 'emploi', 'gagne-pain',
'job', 'métier', 'profession', 'job', 'taf', 'turbin'])
ans1 = ['boulot', 'chagrin', 'emploi', 'gagne-pain',
'job', 'métier', 'profession', 'job', 'taf', 'turbin']
ans2 = ans1.copy()
del ans2[ans2.index('job')]
self.assertIn(res, (ans1, ans2))


if __name__ == "__main__":
Expand Down

0 comments on commit 193e324

Please sign in to comment.