(self)
| 596 | assert body.read() == b"data" |
| 597 | |
| 598 | def test_rewind_body_failed_tell(self) -> None: |
| 599 | body = io.BytesIO(b"test data") |
| 600 | body.read() # Consume body |
| 601 | |
| 602 | # Simulate failed tell() |
| 603 | body_pos = _FAILEDTELL |
| 604 | with pytest.raises(UnrewindableBodyError): |
| 605 | rewind_body(body, body_pos) |
| 606 | |
| 607 | def test_rewind_body_bad_position(self) -> None: |
| 608 | body = io.BytesIO(b"test data") |
nothing calls this directly
no test coverage detected