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

Method test_invalid_cases

tests/transforms/test_flipd.py:45–48  ·  view source on GitHub ↗
(self, _, spatial_axis, raises)

Source from the content-addressed store, hash-verified

43class TestFlipd(NumpyImageTestCase2D):
44 @parameterized.expand(INVALID_CASES)
45 def test_invalid_cases(self, _, spatial_axis, raises):
46 with self.assertRaises(raises):
47 flip = Flipd(keys="img", spatial_axis=spatial_axis)
48 flip({"img": self.imt[0]})
49
50 @parameterized.expand(VALID_CASES)
51 def test_correct_results(self, _, spatial_axis):

Callers

nothing calls this directly

Calls 2

FlipdClass · 0.90
flipFunction · 0.85

Tested by

no test coverage detected