def set_virt_auto_boot(self, num: int): """ Setter for booting a virtual machine automatically. :param num: The new value for whether to enable it or not. """ utils.set_virt_auto_boot(self, num)
def test_set_virt_auto_boot(test_autoboot, expectation): # Arrange test_api = CobblerAPI() test_manager = CollectionManager(test_api) testprofile = Profile(test_manager) # Act with expectation: utils.set_virt_auto_boot(testprofile, test_autoboot) # Assert assert isinstance(testprofile.virt_auto_boot, bool) assert testprofile.virt_auto_boot is True or testprofile.virt_auto_boot is False
def set_virt_auto_boot(self, num): """ Setter for the virtual automatic boot option. :param num: May be "0" (disabled) or "1" (enabled) """ return utils.set_virt_auto_boot(self, num)
def set_virt_auto_boot(self, num): return utils.set_virt_auto_boot(self, num)
def set_virt_auto_boot(self, num): utils.set_virt_auto_boot(self, num)