def virt_auto_boot(self, num: bool): """ Setter for the virtual automatic boot option. :param num: May be "0" (disabled) or "1" (enabled), will be converted to a real bool. """ self._virt_auto_boot = validate.validate_virt_auto_boot(num)
def virt_auto_boot(self, num: bool): """ Setter for booting a virtual machine automatically. :param num: The new value for whether to enable it or not. """ self._virt_auto_boot = validate.validate_virt_auto_boot(num)
def virt_auto_boot(self, num: bool): """ TODO :param num: """ self._virt_auto_boot = validate.validate_virt_auto_boot(num)
def test_set_virt_auto_boot(test_autoboot, expectation): # Arrange # Act with expectation: result = validate.validate_virt_auto_boot(test_autoboot) # Assert assert isinstance(result, bool) assert result is True or result is False