diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-04-09 23:04:30 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-04-09 23:10:33 +0200 |
commit | c7bb3f195b4434abb8319fb2f92e1cb7955af982 (patch) | |
tree | 04a5cbf0fe3e5a3913f66279ffaca981d3b11b1d /tests | |
parent | 9675b386088ff5af7d877f067b77f66e795203a2 (diff) | |
download | git-buildpackage-c7bb3f195b4434abb8319fb2f92e1cb7955af982.tar.gz git-buildpackage-c7bb3f195b4434abb8319fb2f92e1cb7955af982.tar.bz2 git-buildpackage-c7bb3f195b4434abb8319fb2f92e1cb7955af982.zip |
Add aliases for gz and bz2 compression types
Diffstat (limited to 'tests')
-rw-r--r-- | tests/05_test_detection.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/05_test_detection.py b/tests/05_test_detection.py index e8ca64b7..a60cab17 100644 --- a/tests/05_test_detection.py +++ b/tests/05_test_detection.py @@ -91,3 +91,15 @@ class TestDetection(unittest.TestCase): guessed = git_buildpackage.guess_comp_type( repo, 'lzma', self.cp, None) self.assertEqual("lzma", guessed) + + def test_guess_comp_type_bz2(self): + repo = MockGitRepository(with_branch=False) + guessed = git_buildpackage.guess_comp_type( + repo, 'bz2', self.cp, None) + self.assertEqual("bzip2", guessed) + + def test_guess_comp_type_gz(self): + repo = MockGitRepository(with_branch=False) + guessed = git_buildpackage.guess_comp_type( + repo, 'gz', self.cp, None) + self.assertEqual("gzip", guessed) |