summaryrefslogtreecommitdiffstats
path: root/tests/test_lfs.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_lfs.py')
-rw-r--r--tests/test_lfs.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test_lfs.py b/tests/test_lfs.py
new file mode 100644
index 0000000..d82e762
--- /dev/null
+++ b/tests/test_lfs.py
@@ -0,0 +1,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()