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)
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
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)
def set_virt_ram(self, num): return utils.set_virt_ram(self, num)
def set_virt_ram(self, num): utils.set_virt_ram(self, num)