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

Method test_remove_server

tests/sync/test_server.py:233–237  ·  view source on GitHub ↗

Server can remove Server header with server_header.

(self)

Source from the content-addressed store, hash-verified

231 self.assertEval(client, "ws.response.headers['Server']", "Neo")
232
233 def test_remove_server(self):
234 """Server can remove Server header with server_header."""
235 with run_server(server_header=None) as server:
236 with connect(get_uri(server)) as client:
237 self.assertEval(client, "'Server' in ws.response.headers", "False")
238
239 def test_keepalive_is_enabled(self):
240 """Server enables keepalive and measures latency."""

Callers

nothing calls this directly

Calls 4

connectFunction · 0.90
run_serverFunction · 0.85
get_uriFunction · 0.70
assertEvalMethod · 0.45

Tested by

no test coverage detected