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

Method test_read_bytes

Lib/test/test_importlib/resources/test_read.py:19–21  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17
18class ReadTests:
19 def test_read_bytes(self):
20 result = resources.files(self.data).joinpath('binary.file').read_bytes()
21 self.assertEqual(result, bytes(range(4)))
22
23 def test_read_text_default_encoding(self):
24 result = (

Callers

nothing calls this directly

Calls 4

read_bytesMethod · 0.45
joinpathMethod · 0.45
filesMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected