MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / test_method_invalid

Function test_method_invalid

tests/test_client_request.py:115–117  ·  view source on GitHub ↗
(make_request)

Source from the content-addressed store, hash-verified

113
114
115def test_method_invalid(make_request) -> None:
116 with pytest.raises(ValueError, match="Method cannot contain non-token characters"):
117 make_request("METHOD WITH\nWHITESPACES", "http://python.org/")
118
119
120def test_version_1_0(make_request) -> None:

Callers

nothing calls this directly

Calls 1

make_requestFunction · 0.70

Tested by

no test coverage detected