示例#1
0
    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)
示例#2
0
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
示例#3
0
    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)
示例#4
0
 def set_virt_auto_boot(self, num):
     return utils.set_virt_auto_boot(self, num)
示例#5
0
 def set_virt_auto_boot(self, num):
     return utils.set_virt_auto_boot(self, num)
示例#6
0
 def set_virt_auto_boot(self, num):
     utils.set_virt_auto_boot(self, num)
示例#7
0
 def set_virt_auto_boot(self, num):
     utils.set_virt_auto_boot(self, num)