diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-06-28 15:16:57 -0700 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-06-28 15:16:57 -0700 |
| commit | 3419eee951be8660f13b5d750a33b8e8ed64b425 (patch) | |
| tree | 210f4ec0bd14be447566195d0dffaf10182af9d2 /boot/test.py | |
| parent | 02f3505cd6d585a24d79cca033f30ce88e972563 (diff) | |
| download | jasper-client-3419eee951be8660f13b5d750a33b8e8ed64b425.tar.gz jasper-client-3419eee951be8660f13b5d750a33b8e8ed64b425.zip | |
Changes suggested in CR.
Diffstat (limited to 'boot/test.py')
| -rw-r--r-- | boot/test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/test.py b/boot/test.py index b390d5e..af5f982 100644 --- a/boot/test.py +++ b/boot/test.py @@ -16,7 +16,7 @@ sys.path.append(mod_path) import g2p -class ListWhereOrderDoesNotMatter(list): +class UnorderedList(list): def __eq__(self, other): return sorted(self) == sorted(other) @@ -41,7 +41,7 @@ class TestVocabCompiler(unittest.TestCase): # 'words' is appended with ['MUSIC', 'SPOTIFY'] # so must be > 2 to have received WORDS from modules - translateWords.assert_called_once_with(ListWhereOrderDoesNotMatter(words)) + translateWords.assert_called_once_with(UnorderedList(words)) self.assertTrue(text2lm.called) os.remove(sentences) os.remove(dictionary) |
