Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 4
0
 def set_virt_auto_boot(self, num):
     return utils.set_virt_auto_boot(self, num)
Exemplo n.º 5
0
 def set_virt_auto_boot(self, num):
     return utils.set_virt_auto_boot(self, num)
Exemplo n.º 6
0
 def set_virt_auto_boot(self, num):
     utils.set_virt_auto_boot(self, num)
Exemplo n.º 7
0
 def set_virt_auto_boot(self, num):
     utils.set_virt_auto_boot(self, num)