diff options
author | Bruno Wagner Goncalves <bwagner@thoughtworks.com> | 2014-08-07 16:27:52 -0300 |
---|---|---|
committer | Bruno Wagner Goncalves <bwagner@thoughtworks.com> | 2014-08-07 16:37:27 -0300 |
commit | d4cf82682a1cc586628922f18fd0f501772717eb (patch) | |
tree | 7226db9e41e7e51cb945fe17c89acf877b10498d /service/test/search | |
parent | 719240d19bfcf5488a99d38cacccdbbeb94e30f8 (diff) |
Search shouldn't be a module yet, because it only have one file
Diffstat (limited to 'service/test/search')
-rw-r--r-- | service/test/search/test_search_query.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/service/test/search/test_search_query.py b/service/test/search/test_search_query.py index c81b9ba1..2b92cf0d 100644 --- a/service/test/search/test_search_query.py +++ b/service/test/search/test_search_query.py @@ -1,24 +1,24 @@ import sys import os import unittest -from app.search import SearchQuery +import app.search_query as search_query class SearchTestCase(unittest.TestCase): def test_one_tag(self): - self.assertEquals(SearchQuery.compile(u"in:inbox")["tags"], ["inbox"]) - self.assertEquals(SearchQuery.compile(u"in:trash")["tags"], ["trash"]) + self.assertEquals(search_query.compile(u"in:inbox")["tags"], ["inbox"]) + self.assertEquals(search_query.compile(u"in:trash")["tags"], ["trash"]) def test_two_tags_or(self): - self.assertEquals(SearchQuery.compile(u"in:inbox or in:trash")["tags"], ["inbox", "trash"]) + self.assertEquals(search_query.compile(u"in:inbox or in:trash")["tags"], ["inbox", "trash"]) def test_tag_negate(self): - self.assertEquals(SearchQuery.compile(u"-in:trash")["not_tags"], ["trash"]) + self.assertEquals(search_query.compile(u"-in:trash")["not_tags"], ["trash"]) def test_general_search(self): - self.assertEquals(SearchQuery.compile(u"searching")["general"], "searching") + self.assertEquals(search_query.compile(u"searching")["general"], "searching") def test_tags_with_quotes(self): - self.assertEquals(SearchQuery.compile(u"in:\"inbox\"")["tags"], ["inbox"]) - self.assertEquals(SearchQuery.compile(u"in:'inbox'")["tags"], ["inbox"]) + self.assertEquals(search_query.compile(u"in:\"inbox\"")["tags"], ["inbox"]) + self.assertEquals(search_query.compile(u"in:'inbox'")["tags"], ["inbox"]) |