Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
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
Ejemplo n.º 3
0
    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)
Ejemplo n.º 4
0
 def set_virt_file_size(self, num):
     return utils.set_virt_file_size(self, num)
Ejemplo n.º 5
0
 def set_virt_file_size(self, num):
     return utils.set_virt_file_size(self, num)
Ejemplo n.º 6
0
 def set_virt_file_size(self, num):
     utils.set_virt_file_size(self, num)
Ejemplo n.º 7
0
 def set_virt_file_size(self, num):
     utils.set_virt_file_size(self, num)