Esempio n. 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)
Esempio n. 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
Esempio n. 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)
Esempio n. 4
0
 def set_virt_path(self, path):
     return utils.set_virt_path(self, path)
Esempio n. 5
0
 def set_virt_path(self, path):
     return utils.set_virt_path(self, path, for_system=True)
Esempio n. 6
0
 def set_virt_path(self, path):
     utils.set_virt_path(self, path)
Esempio n. 7
0
 def set_virt_path(self, path):
     utils.set_virt_path(self, path)
Esempio n. 8
0
 def set_virt_path(self, path):
     return utils.set_virt_path(self, path)