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

Method test_ill_case

tests/transforms/test_rotate.py:148–156  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

146 test_local_inversion(rotate_fn, rotated, im)
147
148 def test_ill_case(self):
149 for p in TEST_NDARRAYS_ALL:
150 rotate_fn = Rotate(10, True)
151 with self.assertRaises(ValueError): # wrong shape
152 rotate_fn(p(self.imt))
153
154 rotate_fn = Rotate(10, keep_size=False)
155 with self.assertRaises(ValueError): # wrong mode
156 rotate_fn(p(self.imt[0]), mode="trilinear_spell_error")
157
158
159if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

RotateClass · 0.90

Tested by

no test coverage detected