From 3419eee951be8660f13b5d750a33b8e8ed64b425 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 28 Jun 2014 15:16:57 -0700 Subject: Changes suggested in CR. --- boot/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'boot/test.py') 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) -- cgit v1.3.1