def set_virt_file_size(self, num: Union[str, int, float]): """ Setter for the size of the virtual image size. :param num: The new size of the image. """ utils.set_virt_file_size(self, num)
def test_set_virt_file_size(): # Arrange test_api = CobblerAPI() test_manager = CollectionManager(test_api) testprofile = Profile(test_manager) # Act # TODO: Test multiple disks via comma separation utils.set_virt_file_size(testprofile, "8") # Assert assert isinstance(testprofile.virt_file_size, int) assert testprofile.virt_file_size == 8
def set_virt_file_size(self, num): """ Setter for the virtual file size of the image. :param num: Is a non-negative integer (0 means default). Can also be a comma seperated list -- for usage with multiple disks """ return utils.set_virt_file_size(self, num)
def set_virt_file_size(self, num): return utils.set_virt_file_size(self, num)
def set_virt_file_size(self, num): utils.set_virt_file_size(self, num)