diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-26 12:29:33 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-08 20:52:14 +0200 |
| commit | ae67577e9c66231b13d72822b407c5c699d0addc (patch) | |
| tree | 098592443880c4e4c8aa562ed2a17fd49e6b7fb0 | |
| parent | 6e48647677f47ea7990d70757ec23eb2fea9e874 (diff) | |
| download | jasper-client-ae67577e9c66231b13d72822b407c5c699d0addc.tar.gz jasper-client-ae67577e9c66231b13d72822b407c5c699d0addc.zip | |
Fix assert statements in vocabcompiler unittests
| -rw-r--r-- | client/test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/test.py b/client/test.py index 9f9be8a..f91a06e 100644 --- a/client/test.py +++ b/client/test.py @@ -53,8 +53,9 @@ class TestVocabCompiler(unittest.TestCase): vocab = vocabcompiler.DummyVocabulary(path=tempdir) self.assertIsNone(vocab.compiled_revision) self.assertFalse(vocab.is_compiled) + self.assertFalse(vocab.matches_phrases(phrases)) vocab.compile(phrases) - self.assertIsNotNone(vocab.compiled_revision) + self.assertIsInstance(vocab.compiled_revision, str) self.assertTrue(vocab.is_compiled) self.assertTrue(vocab.matches_phrases(phrases)) |
