def virt_ram(self, num: int): """ Setter for the amount of virtual RAM the machine will have. :param num: 0 tells Koan to just choose a reasonable default. """ self._virt_ram = validate.validate_virt_ram(num)
def virt_ram(self, num: Union[str, int]): """ Setter for the virtual RAM used for the VM. :param num: The number of RAM to use for the VM. """ self._virt_ram = validate.validate_virt_ram(num)
def virt_ram(self, num: Union[int, float]): """ TODO :param num: """ self._virt_ram = validate.validate_virt_ram(num)
def test_set_virt_ram(): # Arrange # Act result = validate.validate_virt_ram(1024) # Assert assert result == 1024