Beispiel #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
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
Beispiel #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
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