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

Method test_RawIOBase_readall

Lib/test/test_io/test_general.py:738–744  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

736 self.open(FakePath(os_helper.TESTFN), 'rwxa', encoding="utf-8")
737
738 def test_RawIOBase_readall(self):
739 # Exercise the default unlimited RawIOBase.read() and readall()
740 # implementations.
741 rawio = self.MockRawIOWithoutRead((b"abc", b"d", b"efg"))
742 self.assertEqual(rawio.read(), b"abcdefg")
743 rawio = self.MockRawIOWithoutRead((b"abc", b"d", b"efg"))
744 self.assertEqual(rawio.readall(), b"abcdefg")
745
746 def test_BufferedIOBase_readinto(self):
747 # 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