def test_transform_transpose(self): nptest.assert_array_equal( self.A.T, core.transform(self.A, np.transpose) )
def test_transform(A, fxn): result = core.transform(A, fxn) expected = fxn(A) nptest.assert_array_equal(result, expected)
def test_transform_flip(self): nptest.assert_array_equal( self.known_flipped_A_points, core.transform(self.A, np.fliplr) )