def set_vcpus(args): options = { "mandatory": ["name", "vcpus"], "optional" : [], } check_args(args, options) virt = Virt(hosts()) virt.set_vcpus(args["name"], args["vcpus"])
def set_vcpus(args): options = { "mandatory": ["name", "vcpus"], "optional": [], } check_args(args, options) virt = Virt(hosts()) virt.set_vcpus(args["name"], args["vcpus"])
def test_set_vcpus(): virt = Virt() ok_(virt.set_vcpus("test", "1"))