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