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

Method test_basic

tests/test_server.py:351–358  ·  view source on GitHub ↗

Handshake succeeds.

(self)

Source from the content-addressed store, hash-verified

349 self.assertEqual(exc_str, msg)
350
351 def test_basic(self):
352 """Handshake succeeds."""
353 server = ServerProtocol()
354 request = make_request()
355 response = server.accept(request)
356 server.send_response(response)
357
358 self.assertHandshakeSuccess(server)
359
360 def test_missing_connection(self):
361 """Handshake fails when the Connection header is missing."""

Callers

nothing calls this directly

Calls 5

acceptMethod · 0.95
send_responseMethod · 0.95
ServerProtocolClass · 0.85
make_requestFunction · 0.85

Tested by

no test coverage detected