MCPcopy Index your code
hub / github.com/python/cpython / test_read1_multistream

Method test_read1_multistream

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

Source from the content-addressed store, hash-verified

1005 self.assertEqual(f.read1(), b"")
1006
1007 def test_read1_multistream(self):
1008 with LZMAFile(BytesIO(COMPRESSED_XZ * 5)) as f:
1009 blocks = []
1010 while result := f.read1():
1011 blocks.append(result)
1012 self.assertEqual(b"".join(blocks), INPUT * 5)
1013 self.assertEqual(f.read1(), b"")
1014
1015 def test_read1_bad_args(self):
1016 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