def test_AND_query1(self): arguments = [ '--query', 'Care,Quality,Commission,admission', '--search-type', 'AND' ] cached_docs_ref = main(arguments) self.assertEqual('1', cached_docs_ref)
def test_AND_query2(self): arguments = [ '--query', 'general,population,Alzheimer', '--search-type', 'AND' ] cached_docs_ref = main(arguments) self.assertEqual('6', cached_docs_ref)
def test_OR_query2(self): arguments = ['--query', 'September,2004', '--search-type', 'OR'] cached_docs_ref = main(arguments) self.assertEqual('9', cached_docs_ref)
def test_OR_query3(self): arguments = [ '--query', 'general,population,generally', '--search-type', 'OR' ] cached_docs_ref = main(arguments) self.assertEqual('6,8', cached_docs_ref)
def test_OR_query1(self): arguments = [ '--query', 'Care,Quality,Commission', '--search-type', 'OR' ] cached_docs_ref = main(arguments) self.assertEqual('0,1,2,3,4,5,6', cached_docs_ref)