(ws_testdata)
| 242 | |
| 243 | |
| 244 | def test_empty_message(ws_testdata): |
| 245 | tctx, playbook, flow = ws_testdata |
| 246 | assert ( |
| 247 | playbook |
| 248 | << websocket.WebsocketStartHook(flow) |
| 249 | >> reply() |
| 250 | >> DataReceived(tctx.server, b"\x81\x00") |
| 251 | << websocket.WebsocketMessageHook(flow) |
| 252 | ) |
| 253 | assert flow.websocket.messages[-1].content == b"" |
| 254 | playbook >> reply() |
| 255 | playbook << SendData(tctx.client, b"\x81\x00") |
| 256 | assert playbook |
| 257 | |
| 258 | |
| 259 | def test_drop_message(ws_testdata): |
nothing calls this directly
no test coverage detected
searching dependent graphs…