예제 #1
0
    def set_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.
        """
        utils.set_virt_path(self, path)
예제 #2
0
def test_set_virt_path():
    # Arrange
    test_api = CobblerAPI()
    test_manager = CollectionManager(test_api)
    test_system = System(test_manager)
    test_location = "/somerandomfakelocation"

    # Act
    utils.set_virt_path(test_system, test_location)

    # Assert
    assert test_system.virt_path == test_location
예제 #3
0
    def set_virt_path(self, path):
        """
        Setter for the virtual path which is used.

        :param path: The path to where the virtual image is stored.
        """
        return utils.set_virt_path(self, path)
예제 #4
0
 def set_virt_path(self, path):
     return utils.set_virt_path(self, path)
예제 #5
0
 def set_virt_path(self, path):
     return utils.set_virt_path(self, path, for_system=True)
예제 #6
0
 def set_virt_path(self, path):
     utils.set_virt_path(self, path)
예제 #7
0
 def set_virt_path(self, path):
     utils.set_virt_path(self, path)
예제 #8
0
 def set_virt_path(self, path):
     return utils.set_virt_path(self, path)