def test_missing_code_response_returns_none(): result = views.get_code_response(400, {200: 'ok'}) assert result == None
def test_existing_code_response_is_returned(): result = views.get_code_response(200, {200: 'ok'}) assert result == 'ok'