Exemple #1
0
def start(args):
    options = {
        "mandatory": ["name"],
        "optional" : [],
    }
    check_args(args, options)

    virt = Virt(hosts())
    virt.start(args["name"])
Exemple #2
0
def start(args):
    options = {
        "mandatory": ["name"],
        "optional": [],
    }
    check_args(args, options)

    virt = Virt(hosts())
    virt.start(args["name"])
Exemple #3
0
def test_start_not_exist_exception():
    virt = Virt()
    virt.start("not_exist")
Exemple #4
0
def test_already_started_exception():
    virt = Virt()
    virt.start("test")
Exemple #5
0
def test_start_and_stop():
    virt = Virt()
    eq_(virt.stop("test"), 0)
    eq_(virt.start("test"), 0)