def set_virt_cpus(self, num: Union[int, str]): """ Setter for the number of virtual CPU cores to assign to the virtual machine. :param num: The number of cpu cores. """ utils.set_virt_cpus(self, num)
def test_set_virt_cpus(): # Arrange test_api = CobblerAPI() test_manager = CollectionManager(test_api) test_system = System(test_manager) # Act -> These are develishly bad tests. Please spare me the lecture and let my joke in here. utils.set_virt_cpus(test_system, 666) # Assert assert test_system.virt_cpus == 666
def set_virt_cpus(self, num): """ Setter for the number of virtual cpus. :param num: The number of virtual cpu cores. """ return utils.set_virt_cpus(self, num)
def set_virt_cpus(self, num): return utils.set_virt_cpus(self, num)
def set_virt_cpus(self, num): utils.set_virt_cpus(self, num)