Ejemplo 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()
Ejemplo 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()