Exemplo n.º 1
0
def test_commit_requiring_output():
    """
    Assert that none string returned value is not splitted as string
    """
    out = utils._run(
        '/opt/vyatta/sbin/my_set interfaces ethernet foobar description "This is a LAN interface"',
        output=True)
    assert session.commit() == True
Exemplo n.º 2
0
def test_commit():
    """
    Test if changes are successfully commited
    """
    out = utils._run('/opt/vyatta/sbin/my_set interfaces ethernet eth2 description "This is a LAN interface"', output=True)
    #with pytest.raises(vsc.OperationFailed) as e:
    #    session.commit()
    assert session.commit() == True
Exemplo n.º 3
0
def test_commit():
    """
    Test if changes are successfully commited
    """
    out = utils._run(
        '/opt/vyatta/sbin/my_set interfaces ethernet eth2 description "This is a LAN interface"',
        output=True)
    #with pytest.raises(vsc.OperationFailed) as e:
    #    session.commit()
    assert session.commit() == True
Exemplo n.º 4
0
def test_commit_requiring_output():
    """
    Assert that none string returned value is not splitted as string
    """
    out = utils._run('/opt/vyatta/sbin/my_set interfaces ethernet foobar description "This is a LAN interface"', output=True)
    assert session.commit() == True