(self)
| 25 | |
| 26 | class TestIdentity(NumpyImageTestCase2D): |
| 27 | def test_identity(self): |
| 28 | for p in TEST_NDARRAYS: |
| 29 | img = p(self.imt) |
| 30 | identity = mt.RandIdentity() |
| 31 | assert_allclose(img, identity(img)) |
| 32 | |
| 33 | def test_caching(self, init=1, expect=4, expect_pre_cache=2): |
| 34 | # check that we get the correct result (two lots of T so should get 4) |
nothing calls this directly
no test coverage detected