def test_func_args():
    A = CoordSysCartesian('A')
    assert (A.x.func(*A.x.args) == A.x)
    expr = ((3 * A.x) + (4 * A.y))
    assert (expr.func(*expr.args) == expr)
    assert (A.i.func(*A.i.args) == A.i)
    v = (((A.x * A.i) + (A.y * A.j)) + (A.z * A.k))
    assert (v.func(*v.args) == v)
    assert (A.origin.func(*A.origin.args) == A.origin)
def test_func_args():
    A = CoordSysCartesian('A')
    assert (A.x.func(*A.x.args) == A.x)
    expr = ((3 * A.x) + (4 * A.y))
    assert (expr.func(*expr.args) == expr)
    assert (A.i.func(*A.i.args) == A.i)
    v = (((A.x * A.i) + (A.y * A.j)) + (A.z * A.k))
    assert (v.func(*v.args) == v)
    assert (A.origin.func(*A.origin.args) == A.origin)