(self)
| 1640 | self.stream = io.BytesIO(b"0123456789") |
| 1641 | |
| 1642 | def test_read(self): |
| 1643 | s = _StreamSlice(self.stream, 0, 4) |
| 1644 | self.assertEqual(b"", s.read(0)) |
| 1645 | self.assertEqual(b"0", s.read(1)) |
| 1646 | self.assertEqual(b"123", s.read()) |
| 1647 | |
| 1648 | def test_read_too_much(self): |
| 1649 | s = _StreamSlice(self.stream, 1, 4) |
nothing calls this directly
no test coverage detected