예제 #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()
예제 #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()