def scale_compose_after_inplace_homog_test(): # can't do this inplace - so should just give transform chain homog = Homogeneous(np.array([[0, 1, 0], [1, 0, 0], [0, 0, 1]])) s = Scale([3, 4]) s.compose_after_inplace(homog)
def test_scale_compose_after_inplace_homog(): # can't do this inplace - so should just give transform chain homog = Homogeneous(np.array([[0, 1, 0], [1, 0, 0], [0, 0, 1]])) s = Scale([3, 4]) with raises(ValueError): s.compose_after_inplace(homog)