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)
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
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)
def set_virt_path(self, path): return utils.set_virt_path(self, path)
def set_virt_path(self, path): return utils.set_virt_path(self, path, for_system=True)
def set_virt_path(self, path): utils.set_virt_path(self, path)