MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_read1_multistream

Method test_read1_multistream

Lib/test/test_lzma.py:1017–1023  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1015 self.assertEqual(f.read1(), b"")
1016
1017 def test_read1_multistream(self):
1018 with LZMAFile(BytesIO(COMPRESSED_XZ * 5)) as f:
1019 blocks = []
1020 while result := f.read1():
1021 blocks.append(result)
1022 self.assertEqual(b"".join(blocks), INPUT * 5)
1023 self.assertEqual(f.read1(), b"")
1024
1025 def test_read1_bad_args(self):
1026 f = LZMAFile(BytesIO(COMPRESSED_XZ))

Callers

nothing calls this directly

Calls 6

LZMAFileClass · 0.90
BytesIOClass · 0.90
read1Method · 0.45
appendMethod · 0.45
assertEqualMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected