MCPcopy Index your code
hub / github.com/python-websockets/websockets / test_path

Method test_path

tests/test_client.py:123–128  ·  view source on GitHub ↗

connect() uses the path from the URI.

(self)

Source from the content-addressed store, hash-verified

121 )
122
123 def test_path(self):
124 """connect() uses the path from the URI."""
125 client = ClientProtocol(parse_uri("wss://example.com/endpoint?test=1"))
126 request = client.connect()
127
128 self.assertEqual(request.path, "/endpoint?test=1")
129
130 def test_port(self):
131 """connect() uses the port from the URI or the default port."""

Callers

nothing calls this directly

Calls 3

connectMethod · 0.95
parse_uriFunction · 0.90
ClientProtocolClass · 0.85

Tested by

no test coverage detected