def test_create_revlookup_query_norestriction(self): searcher = Searcher(allowed_search_keys=[]) query = searcher.create_revlookup_query(baz='baz') self.assertEqual(query, '?baz=baz', 'The query is: ' + query)
def setUp(self): self.inst = EUDATHandleClient() self.inst._EUDATHandleClient__searcher._Searcher__has_search_access = True # fake search access self.searcher = Searcher() self.searcher._Searcher__has_search_access = True # Fake search access