예제 #1
0
    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)
예제 #2
0
    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)
예제 #3
0
파일: system.py 프로젝트: nodeg/cobbler
    def virt_ram(self, num: Union[int, float]):
        """
        TODO

        :param num:
        """
        self._virt_ram = validate.validate_virt_ram(num)
예제 #4
0
def test_set_virt_ram():
    # Arrange

    # Act
    result = validate.validate_virt_ram(1024)

    # Assert
    assert result == 1024