MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_default

Method test_default

tests/utils/test_get_package_version.py:21–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

19class 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")

Callers

nothing calls this directly

Calls 1

get_package_versionFunction · 0.90

Tested by

no test coverage detected