'Testing whether the API returns an error 400 if no query is passed when getting search completion terms'

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

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