diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2012-01-12 15:24:19 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-01-15 19:55:40 +0100 |
commit | d47358201156967114dbb232a0438e6a3cb8842c (patch) | |
tree | ab8d5d8a822b61e73c39c35dc10297469c91e0cc /tests/05_test_detection.py | |
parent | 2aa428256885b9d2429a83c51065a42de6d0c242 (diff) |
deb: minor refactor of parameters of has_orig()
Diffstat (limited to 'tests/05_test_detection.py')
-rw-r--r-- | tests/05_test_detection.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/05_test_detection.py b/tests/05_test_detection.py index d866d7d..c9cd16c 100644 --- a/tests/05_test_detection.py +++ b/tests/05_test_detection.py @@ -8,7 +8,7 @@ import tempfile import unittest from gbp.scripts import buildpackage -from gbp.deb import has_orig +from gbp.deb import (has_orig, orig_file) from gbp.errors import GbpError class MockGitRepository: @@ -66,11 +66,11 @@ class TestDetection(unittest.TestCase): self.assertEqual("bzip2", guessed) def test_has_orig_false(self): - self.assertFalse(has_orig(self.cp, 'gzip', self.tmpdir)) + self.assertFalse(has_orig(orig_file(self.cp, 'gzip'), self.tmpdir)) def test_has_orig_true(self): open(os.path.join(self.tmpdir, 'source_1.2.orig.tar.gz'), "w").close() - self.assertTrue(has_orig(self.cp, 'gzip', self.tmpdir)) + self.assertTrue(has_orig(orig_file(self.cp, 'gzip'), self.tmpdir)) def test_guess_comp_type_bzip2(self): repo = MockGitRepository(with_branch=False) |