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

Method test_read_text

Lib/test/test_importlib/test_metadata_api.py:79–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

77 )
78
79 def test_read_text(self):
80 tests = [
81 ('egginfo-pkg', 'mod\n'),
82 ('egg_with_no_modules-pkg', '\n'),
83 ]
84 for pkg_name, expect_content in tests:
85 with self.subTest(pkg_name):
86 top_level = [
87 path for path in files(pkg_name) if path.name == 'top_level.txt'
88 ][0]
89 self.assertEqual(top_level.read_text(), expect_content)
90
91 def test_entry_points(self):
92 eps = entry_points()

Callers

nothing calls this directly

Calls 4

filesFunction · 0.90
subTestMethod · 0.80
assertEqualMethod · 0.45
read_textMethod · 0.45

Tested by

no test coverage detected