summaryrefslogtreecommitdiff
path: root/client/test.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-09-26 12:29:33 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-10-08 20:52:14 +0200
commitae67577e9c66231b13d72822b407c5c699d0addc (patch)
tree098592443880c4e4c8aa562ed2a17fd49e6b7fb0 /client/test.py
parent6e48647677f47ea7990d70757ec23eb2fea9e874 (diff)
downloadjasper-client-ae67577e9c66231b13d72822b407c5c699d0addc.tar.gz
jasper-client-ae67577e9c66231b13d72822b407c5c699d0addc.zip
Fix assert statements in vocabcompiler unittests
Diffstat (limited to 'client/test.py')
-rw-r--r--client/test.py3
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))