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

Method test_read_text

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

Source from the content-addressed store, hash-verified

26 assert actual == b'Hello, UTF-8 world!\n'
27
28 def test_read_text(self):
29 files = resources.files(self.data)
30 actual = files.joinpath('utf-8.file').read_text(encoding='utf-8')
31 assert actual == 'Hello, UTF-8 world!\n'
32
33 def test_traversable(self):
34 assert isinstance(resources.files(self.data), Traversable)

Callers

nothing calls this directly

Calls 3

filesMethod · 0.45
read_textMethod · 0.45
joinpathMethod · 0.45

Tested by

no test coverage detected