Esempio n. 1
0
    def virt_path(self, path: str):
        """
        Setter for the virtual path which is used.

        :param path: The path to where the virtual image is stored.
        """
        self._virt_path = validate.validate_virt_path(path)
Esempio n. 2
0
    def virt_path(self, path: str):
        """
        Setter for the ``virt_path`` property.

        :param path: The path to where the image will be stored.
        """
        self._virt_path = validate.validate_virt_path(path)
Esempio n. 3
0
    def virt_path(self, path: str):
        """
        Setter of the path to the place where the image will be stored.

        :param path: The path to where the image will be stored.
        """
        self._virt_path = validate.validate_virt_path(path)
Esempio n. 4
0
    def virt_path(self, path: str):
        """
        TODO

        :param path:
        """
        self._virt_path = validate.validate_virt_path(path, for_system=True)
Esempio n. 5
0
def test_validate_virt_path():
    # Arrange
    test_location = "/somerandomfakelocation"

    # Act
    result = validate.validate_virt_path(test_location)

    # Assert
    assert result == test_location