diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-10-30 20:03:33 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-11-01 18:12:48 +0100 |
commit | e28ea0740a7b4eb2ef4c1bd3079d77a40c6072b8 (patch) | |
tree | 779145e71a996c471a1d1a6b1acde1bc90deecc4 /tests/05_test_detection.py | |
parent | abf90abcba15beb51196cf503f35695acdcd91c1 (diff) |
Get rid of the symlink
by moving the commands to gbp/scripts/
Diffstat (limited to 'tests/05_test_detection.py')
-rw-r--r-- | tests/05_test_detection.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/05_test_detection.py b/tests/05_test_detection.py index a60cab17..2f58265c 100644 --- a/tests/05_test_detection.py +++ b/tests/05_test_detection.py @@ -3,7 +3,7 @@ import shutil import tempfile import unittest -import git_buildpackage +from gbp.scripts import buildpackage from gbp.deb import has_orig from gbp.errors import GbpError @@ -31,14 +31,14 @@ class TestDetection(unittest.TestCase): def test_guess_comp_type_no_pristine_tar_no_orig(self): repo = MockGitRepository(with_branch=False) - guessed = git_buildpackage.guess_comp_type( + guessed = buildpackage.guess_comp_type( repo, 'auto', self.cp, self.tmpdir) self.assertEqual('gzip', guessed) def test_guess_comp_type_no_pristine_tar_with_orig(self): open(os.path.join(self.tmpdir, 'source_1.2.orig.tar.bz2'), "w").close() repo = MockGitRepository(with_branch=False) - guessed = git_buildpackage.guess_comp_type( + guessed = buildpackage.guess_comp_type( repo, 'auto', self.cp, self.tmpdir) self.assertEqual('bzip2', guessed) @@ -48,7 +48,7 @@ class TestDetection(unittest.TestCase): repo = MockGitRepository(with_branch=False) self.assertRaises( GbpError, - git_buildpackage.guess_comp_type, + buildpackage.guess_comp_type, repo, 'auto', self.cp, @@ -57,7 +57,7 @@ class TestDetection(unittest.TestCase): def test_guess_comp_type_auto_bzip2(self): subject = 'pristine-tar data for source_1.2-3.orig.tar.bz2' repo = MockGitRepository(with_branch=True, subject=subject) - guessed = git_buildpackage.guess_comp_type( + guessed = buildpackage.guess_comp_type( repo, 'auto', self.cp, self.tmpdir) self.assertEqual("bzip2", guessed) @@ -70,36 +70,36 @@ class TestDetection(unittest.TestCase): def test_guess_comp_type_bzip2(self): repo = MockGitRepository(with_branch=False) - guessed = git_buildpackage.guess_comp_type( + guessed = buildpackage.guess_comp_type( repo, 'bzip2', self.cp, None) self.assertEqual("bzip2", guessed) def test_guess_comp_type_gzip(self): repo = MockGitRepository(with_branch=False) - guessed = git_buildpackage.guess_comp_type( + guessed = buildpackage.guess_comp_type( repo, 'gzip', self.cp, None) self.assertEqual("gzip", guessed) def test_guess_comp_type_bz(self): repo = MockGitRepository(with_branch=False) - guessed = git_buildpackage.guess_comp_type( + guessed = buildpackage.guess_comp_type( repo, 'xz', self.cp, None) self.assertEqual("xz", guessed) def test_guess_comp_type_lzma(self): repo = MockGitRepository(with_branch=False) - guessed = git_buildpackage.guess_comp_type( + guessed = 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( + guessed = 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( + guessed = buildpackage.guess_comp_type( repo, 'gz', self.cp, None) self.assertEqual("gzip", guessed) |