Tests that the read method increments the cursor position and the seek method moves the cursor to the appropriate position
()
| 34 | |
| 35 | |
| 36 | def test_04(): |
| 37 | """ |
| 38 | Tests that the read method increments the |
| 39 | cursor position and the seek method moves |
| 40 | the cursor to the appropriate position |
| 41 | """ |
| 42 | string = b"Test String 4" |
| 43 | f = BytesIO(string) |
| 44 | |
| 45 | assert f.read(4) == b"Test" |
| 46 | assert f.tell() == 4 |
| 47 | assert f.seek(0) == 0 |
| 48 | assert f.read(4) == b"Test" |
| 49 | |
| 50 | |
| 51 | def test_05(): |
no test coverage detected