(self)
| 19 | class TestGetVersion(unittest.TestCase): |
| 20 | |
| 21 | def test_default(self): |
| 22 | output = get_package_version("42foobarnoexist") |
| 23 | self.assertIn("UNKNOWN", output) |
| 24 | |
| 25 | output = get_package_version("numpy") |
| 26 | self.assertNotIn("UNKNOWN", output) |
| 27 | |
| 28 | def test_msg(self): |
| 29 | output = get_package_version("42foobarnoexist", "test") |
nothing calls this directly
no test coverage detected