'Testing whether the API returns an error 400 if no search query is passed with the request'

@deferred(timeout=10)
def test_search_no_parameter(self):

    expected_json = {'error': 'query    parameter    missing'}
    return self.do_request('search', expected_code=400, expected_json=expected_json)
