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