(self)
| 38 | assert_array_equal(trans.get_matrix(), [[42, 0, 0], [0, 1, 0], [0, 0, 1]]) |
| 39 | |
| 40 | def test_clear(self): |
| 41 | a = Affine2D(np.random.rand(3, 3) + 5) # Anything non-identity. |
| 42 | a.clear() |
| 43 | assert_array_equal(a.get_matrix(), [[1, 0, 0], [0, 1, 0], [0, 0, 1]]) |
| 44 | |
| 45 | def test_rotate(self): |
| 46 | r_pi_2 = Affine2D().rotate(np.pi / 2) |
nothing calls this directly
no test coverage detected