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

Method test_invalid_inputs

tests/transforms/test_flip.py:44–47  ·  view source on GitHub ↗
(self, _, spatial_axis, raises)

Source from the content-addressed store, hash-verified

42class TestFlip(NumpyImageTestCase2D):
43 @parameterized.expand(INVALID_CASES)
44 def test_invalid_inputs(self, _, spatial_axis, raises):
45 with self.assertRaises(raises):
46 flip = Flip(spatial_axis)
47 flip(self.imt[0])
48
49 @parameterized.expand(VALID_CASES)
50 def test_correct_results(self, _, spatial_axis):

Callers

nothing calls this directly

Calls 2

FlipClass · 0.90
flipFunction · 0.85

Tested by

no test coverage detected