def METHOD_NAME(self, m):
    """
    Test that the /candidates/search/ endpoint was called with the right q
    """
    m.register_uri('GET', candidate_url, json=[{"candidate_name": "Abe Lincoln"}])
    search_candidates('abe')
    history = m.request_history[0]
    self.assertTrue(m.called)
    self.assertEqual(history.qs['q'], ['abe'])