Пример #1
0
    def set_virt_ram(self, num: Union[int, float]):
        """
        Setter for the virtual RAM used for the VM.

        :param num: The number of RAM to use for the VM.
        """
        utils.set_virt_ram(self, num)
Пример #2
0
def test_set_virt_ram():
    # Arrange
    test_api = CobblerAPI()
    test_manager = CollectionManager(test_api)
    test_system = System(test_manager)

    # Act
    utils.set_virt_ram(test_system, 1024)

    # Assert
    assert test_system.virt_ram == 1024
Пример #3
0
    def set_virt_ram(self, num):
        """
        Setter for the amount of virtual RAM the machine will have.

        :param num: 0 tells Koan to just choose a reasonable default.
        """
        return utils.set_virt_ram(self, num)
Пример #4
0
 def set_virt_ram(self, num):
     return utils.set_virt_ram(self, num)
Пример #5
0
 def set_virt_ram(self, num):
     return utils.set_virt_ram(self, num)
Пример #6
0
 def set_virt_ram(self, num):
     utils.set_virt_ram(self, num)
Пример #7
0
 def set_virt_ram(self, num):
     utils.set_virt_ram(self, num)