def test_bad_init_from_rot_pos(args): with pytest.raises(TypeError): Transform2D.from_rot_pos(*args)
def test_init_from_rot_pos(): v = Transform2D.from_rot_pos(1, Vector2()) assert isinstance(v, Transform2D)