def test_rotate():
    r = ring()
    r.pos = (3,0,0)
    r2 = ring(pos = (3,0,0))
    points1 = r2.points
    r.rotate(90, [0,1,0], [1,0,0])
    r.rotate(-90, [0,1,0], [1,0,0])
    points2 = r.points
    if (numpy.allclose(points1, points2)):
        print("All clear")
    else:
        print("Test failed")
    return r
Test fuction for testing integrity of rotation function of
dataset/ETHPy150Open enthought/mayavi/tvtk/tools/visual.py/test_rotate