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

Method test_invalid_inputs

tests/transforms/test_resize.py:42–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

40
41class TestResize(NumpyImageTestCase2D):
42 def test_invalid_inputs(self):
43 with self.assertRaises(ValueError):
44 resize = Resize(spatial_size=(128, 128, 3), mode="order")
45 resize(self.imt[0])
46
47 with self.assertRaises(ValueError):
48 resize = Resize(spatial_size=(128,), mode="order")
49 resize(self.imt[0])
50
51 def test_unchange(self):
52 resize = Resize(spatial_size=(128, 64), mode="bilinear")

Callers

nothing calls this directly

Calls 2

ResizeClass · 0.90
resizeFunction · 0.85

Tested by

no test coverage detected