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

Method test_read_bytes

Lib/test/test_importlib/resources/test_files.py:23–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21
22class FilesTests:
23 def test_read_bytes(self):
24 files = resources.files(self.data)
25 actual = files.joinpath('utf-8.file').read_bytes()
26 assert actual == b'Hello, UTF-8 world!\n'
27
28 def test_read_text(self):
29 files = resources.files(self.data)

Callers

nothing calls this directly

Calls 3

filesMethod · 0.45
read_bytesMethod · 0.45
joinpathMethod · 0.45

Tested by

no test coverage detected