def test_json_response_with_status_kwarg(): resp = JSONResponse({}, status=400).respond(None) assert resp.status_code == 400
def test_json_response(): resp = JSONResponse({}).respond(None) assert resp.status_code == 200