(
playbook: tutils.Playbook, tssl: SSLTest, conn: connection.Connection
)
| 434 | |
| 435 | |
| 436 | def _test_echo( |
| 437 | playbook: tutils.Playbook, tssl: SSLTest, conn: connection.Connection |
| 438 | ) -> None: |
| 439 | tssl.quic.send_datagram_frame(b"Hello World") |
| 440 | data = tutils.Placeholder(bytes) |
| 441 | assert ( |
| 442 | playbook |
| 443 | >> events.DataReceived(conn, tssl.read()) |
| 444 | << commands.SendData(conn, data) |
| 445 | ) |
| 446 | tssl.write(data()) |
| 447 | while event := tssl.quic.next_event(): |
| 448 | if isinstance(event, quic_events.DatagramFrameReceived): |
| 449 | assert event.data == b"hello world" |
| 450 | break |
| 451 | else: |
| 452 | raise AssertionError() |
| 453 | |
| 454 | |
| 455 | def finish_handshake( |
no test coverage detected
searching dependent graphs…