(self)
| 1991 | self.assertEqual(f.read1(), b"") |
| 1992 | |
| 1993 | def test_read1_multistream(self): |
| 1994 | with ZstdFile(io.BytesIO(COMPRESSED_100_PLUS_32KB * 5)) as f: |
| 1995 | blocks = [] |
| 1996 | while True: |
| 1997 | result = f.read1() |
| 1998 | if not result: |
| 1999 | break |
| 2000 | blocks.append(result) |
| 2001 | self.assertEqual(b"".join(blocks), DECOMPRESSED_100_PLUS_32KB * 5) |
| 2002 | self.assertEqual(f.read1(), b"") |
| 2003 | |
| 2004 | def test_read1_bad_args(self): |
| 2005 | f = ZstdFile(io.BytesIO(COMPRESSED_100_PLUS_32KB)) |
nothing calls this directly
no test coverage detected