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

Method test_default

tests/utils/test_look_up_option.py:53–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51 self.assertEqual(output, expected)
52
53 def test_default(self):
54 output = look_up_option("not here", {"a", "b"}, default=None)
55 self.assertEqual(output, None)
56
57 def test_str_enum(self):
58 output = look_up_option("C", {"A", "B"}, default=None)

Callers

nothing calls this directly

Calls 1

look_up_optionFunction · 0.90

Tested by

no test coverage detected