Ejemplo n.º 1
0
def test_reapply_when_raise_error():
    c = DummyDeviceControl(raise_error=Exception)
    with pytest.raises(Exception):
        c.reapply('eth0')
Ejemplo n.º 2
0
def test_reapply():
    c = DummyDeviceControl()
    ifname = 'eth0'
    c.reapply(ifname)
    assert c.reapply_args == [ifname]