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