(ws, request, response)
| 248 | """Server runs process_response but keeps the handshake response.""" |
| 249 | |
| 250 | def process_response(ws, request, response): |
| 251 | self.assertIsInstance(request, Request) |
| 252 | self.assertIsInstance(response, Response) |
| 253 | ws.process_response_ran = True |
| 254 | |
| 255 | async with serve(*args, process_response=process_response) as server: |
| 256 | async with connect(get_uri(server)) as client: |