File: test_lfs.py

package info (click to toggle)
python-apt 2.6.0
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,044 kB
  • sloc: cpp: 10,192; python: 8,547; makefile: 94; sh: 18
file content (20 lines) | stat: -rw-r--r-- 463 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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()