def setUp(self): super(TestSearchAPI, self).setUp() self.api = SearchAPI(mock.MagicMock()) self.api.PATH = '/some/path'