Client offers a subprotocol.
(self)
| 583 | ) |
| 584 | |
| 585 | def test_offer_subprotocol(self): |
| 586 | """Client offers a subprotocol.""" |
| 587 | client = ClientProtocol(URI, subprotocols=["chat"]) |
| 588 | request = client.connect() |
| 589 | |
| 590 | self.assertEqual(request.headers["Sec-WebSocket-Protocol"], "chat") |
| 591 | |
| 592 | def test_enable_subprotocol(self): |
| 593 | """Client offers a subprotocol and the server enables it.""" |
nothing calls this directly
no test coverage detected