Esempio n. 1
0
def test_set_bandwidth(hypervisor):

    nio = NIO_Null(hypervisor)
    assert nio.bandwidth == None  # no constraint by default
    nio.set_bandwidth(1000)  # bandwidth = 1000 Kb/s
    assert nio.bandwidth == 1000
    nio.delete()
Esempio n. 2
0
def test_set_bandwidth(hypervisor):

    nio = NIO_Null(hypervisor)
    assert nio.bandwidth == None  # no constraint by default
    nio.set_bandwidth(1000)  # bandwidth = 1000 Kb/s
    assert nio.bandwidth == 1000
    nio.delete()