summaryrefslogtreecommitdiff
path: root/tests/test_paths.py
AgeCommit message (Collapse)AuthorFilesLines
2015-06-16tests/test_paths.py: Add an 'always' warning filter, so it is reliableJulian Andres Klode1-2/+6
Previously, the warning was not always issued, causing the test to fail in some cases. Also change the assertions to use the assert* methods of unittest, and check that md5 and hash are mentioned in the deprecation message. Thanks: Adam Conrad Gbp-Dch: ignore
2015-06-16tests/test_paths.py: Fix indentationJulian Andres Klode1-4/+4
Geany misdetected it as 8 spaces, but it should be 4. Gbp-Dch: ignore
2015-06-16tests/test_paths.py: Catch and assert the DeprecationWarningJulian Andres Klode1-4/+10
This fixes Ubuntu autopkg test failure wily-adt-python-apt #12. https://jenkins.qa.ubuntu.com/job/wily-adt-python-apt/12/
2015-05-22rename "md5" keyword argument in AcquireFile() to "hash" and add backward ↵Michael Vogt1-0/+14
compatiblity
2014-03-17Support all compressors for data.tar/control.tar (Closes: #718330)Julian Andres Klode1-4/+4
This makes our support very flexible, and open for future additions of new compression algorithms. debfile_extract_tar() is almost identical to ExtractTarMember() of apt's debDebFile.
2014-01-05make test_pep8.py passMichael Vogt1-4/+6
2014-01-05make pyflakes cleanMichael Vogt1-1/+0
2013-10-14tests/test_path.py: Use "Dir" option instead of "RootDir", and reset in tearDownJulian Andres Klode1-3/+3
This fixes tests/test_all.py.
2013-10-14Add tests for (all except one) functions accepting pathsJulian Andres Klode1-0/+106
Test the functions with a unicode and a byte object each. I ignore PackageManager.install, because I cannot imagine an easy way to test that one.
2013-10-14python/indexrecords.cc: IndexRecords.load() needs to accept bytes as wellJulian Andres Klode1-0/+29