diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2015-03-20 22:25:27 -0300 |
---|---|---|
committer | Victor Shyba <victor.shyba@gmail.com> | 2015-03-20 22:25:27 -0300 |
commit | abd30a888978da49ffe01025be9918854bc36c7c (patch) | |
tree | c74a6feb80d762a40d9126a7642fcace99e1987a /service/test/integration | |
parent | 17c80f72da8c4b5d06b29da2499b845c484860cc (diff) |
empty queries test makes more sense as a unit test
Diffstat (limited to 'service/test/integration')
-rw-r--r-- | service/test/integration/test_soledad_querier.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/service/test/integration/test_soledad_querier.py b/service/test/integration/test_soledad_querier.py index f5b2978f..f4c23961 100644 --- a/service/test/integration/test_soledad_querier.py +++ b/service/test/integration/test_soledad_querier.py @@ -81,20 +81,3 @@ class SoledadQuerierTest(SoledadTestBase, WithMsgFields): fetched_mails = self.soledad_querier.mails(chashes) self.assertEquals([m.as_dict() for m in fetched_mails], [m.as_dict() for m in mails]) - - def test_empty_or_bad_queries_are_handled(self): - self.add_multiple_to_mailbox(3, 'INBOX') - - test_parameters = ['', 'undefined', None, 'none'] - - def call_with_bad_parameters(funct): - for param in test_parameters: - self.assertFalse(funct(param)) - - call_with_bad_parameters(self.soledad_querier.get_all_flags_by_mbox) - call_with_bad_parameters(self.soledad_querier.get_content_by_phash) - call_with_bad_parameters(self.soledad_querier.get_flags_by_chash) - call_with_bad_parameters(self.soledad_querier.get_header_by_chash) - call_with_bad_parameters(self.soledad_querier.get_recent_by_mbox) - call_with_bad_parameters(self.soledad_querier.idents_by_mailbox) - call_with_bad_parameters(self.soledad_querier.get_mbox) |