HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //proc/1233/cwd/home/arjun/python-apt/tests/test_lfs.py
#!/usr/bin/python3
import unittest

import apt_pkg
import testcommon


class TestLargeFileSupport(testcommon.TestCase):
    """Test large file support"""

    def test_acquire_file(self):
        """Test apt_pkg.AcquireFile() accepts large file size"""
        acq = apt_pkg.Acquire()
        fil = apt_pkg.AcquireFile(acq, "http://foo", "foo", size=2875204834)
        self.assertEqual(fil.filesize, 2875204834)


if __name__ == "__main__":
    unittest.main()