def test_handle_bad_request():
    router = MockRouter()
    backend = RapidHttpBacked(name='test', 
                              router=router)
    response = backend.handle_request(HttpRequest())
    assert_true(isinstance(response, HttpResponseBadRequest))
handle_request must return a HttpResponse
dataset/ETHPy150Open rapidsms/rapidsms-core-dev/lib/rapidsms/tests/backend/test_http.py/test_handle_bad_request