def test_linear_interpolate(run_with_maya_pymel, setup_path):
    from maya import OpenMaya
    import pymel.core as pm
    from mgear.core.vector import linear_interpolate
    _value = [2, 5, 8]
    v_1 = [0, 0, 0]
    v_2 = _value
    result = linear_interpolate(v_1, v_2)
    assert (type(result) == OpenMaya.MVector)
    assert ([result[0], result[1], result[2]] == [1, 2.5, 4])
    pm.newFile(force=True)
    v_1 = pm.createNode('transform')
    v_2 = pm.createNode('transform')
    v_2.translate.set(_value[0], _value[1], _value[2])
    result = linear_interpolate(v_1, v_2)
    assert ([result[0], result[1], result[2]] == [1, 2.5, 4])
def test_linear_interpolate(run_with_maya_pymel, setup_path):
    from maya import OpenMaya
    import pymel.core as pm
    from mgear.core.vector import linear_interpolate
    _value = [2, 5, 8]
    v_1 = [0, 0, 0]
    v_2 = _value
    result = linear_interpolate(v_1, v_2)
    assert (type(result) == OpenMaya.MVector)
    assert ([result[0], result[1], result[2]] == [1, 2.5, 4])
    pm.newFile(force=True)
    v_1 = pm.createNode('transform')
    v_2 = pm.createNode('transform')
    v_2.translate.set(_value[0], _value[1], _value[2])
    result = linear_interpolate(v_1, v_2)
    assert ([result[0], result[1], result[2]] == [1, 2.5, 4])