Esempio n. 1
0
 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)
Esempio n. 2
0
 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