Client offers an extension.
(self)
| 445 | self.assertEqual(client.extensions, []) |
| 446 | |
| 447 | def test_offer_extension(self): |
| 448 | """Client offers an extension.""" |
| 449 | client = ClientProtocol(URI, extensions=[ClientRsv2ExtensionFactory()]) |
| 450 | request = client.connect() |
| 451 | |
| 452 | self.assertEqual(request.headers["Sec-WebSocket-Extensions"], "x-rsv2") |
| 453 | |
| 454 | def test_enable_extension(self): |
| 455 | """Client offers an extension and the server enables it.""" |
nothing calls this directly
no test coverage detected