File: test_lfs.py

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