(self)
| 845 | self.assertIs(client.state, CLOSING) |
| 846 | |
| 847 | def test_server_receives_close(self): |
| 848 | server = Protocol(SERVER) |
| 849 | server.receive_data(b"\x88\x80\x3c\x3c\x3c\x3c") |
| 850 | self.assertEqual(server.events_received(), [Frame(OP_CLOSE, b"")]) |
| 851 | self.assertEqual(server.data_to_send(), [b"\x88\x00", b""]) |
| 852 | self.assertIs(server.state, CLOSING) |
| 853 | |
| 854 | def test_client_sends_close_then_receives_close(self): |
| 855 | # Client-initiated close handshake on the client side. |
nothing calls this directly
no test coverage detected