(self)
| 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 | |
| 159 | if __name__ == "__main__": |