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

Method test_RawIOBase_readall

Lib/test/test_io.py:1021–1027  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1019 self.open(FakePath(os_helper.TESTFN), 'rwxa', encoding="utf-8")
1020
1021 def test_RawIOBase_readall(self):
1022 # Exercise the default unlimited RawIOBase.read() and readall()
1023 # implementations.
1024 rawio = self.MockRawIOWithoutRead((b"abc", b"d", b"efg"))
1025 self.assertEqual(rawio.read(), b"abcdefg")
1026 rawio = self.MockRawIOWithoutRead((b"abc", b"d", b"efg"))
1027 self.assertEqual(rawio.readall(), b"abcdefg")
1028
1029 def test_BufferedIOBase_readinto(self):
1030 # Exercise the default BufferedIOBase.readinto() and readinto1()

Callers

nothing calls this directly

Calls 3

assertEqualMethod · 0.45
readMethod · 0.45
readallMethod · 0.45

Tested by

no test coverage detected