def test_client_parse_req_bad_get(message, result): """If GET is bad, parse request function returns error code 405.""" assert client(message) == result
def test_client_parse_req_bad_len(message, result): """Test the length function in the parse request function.""" assert client(message) == result
def test_client_parse_req_bad_http(message, result): """If http is bad, parse request function returns error code 505.""" assert client(message) == result
def test_client_resolve_uri_ok(message, result): """Test resolve URI function returns properly formatted response.""" assert client(message) == result