diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-07-25 08:58:23 +0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-02-20 21:14:47 +0100 |
commit | 3ef3304fa8457908a041eba9f0f4fd47cd2badf9 (patch) | |
tree | 4e2c6f9f473f41e62f931d049b259300eeb9fda9 | |
parent | f10d67f54b696591f38c61519c45730de059d0c1 (diff) | |
download | git-buildpackage-3ef3304fa8457908a041eba9f0f4fd47cd2badf9.tar.gz git-buildpackage-3ef3304fa8457908a041eba9f0f4fd47cd2badf9.tar.bz2 git-buildpackage-3ef3304fa8457908a041eba9f0f4fd47cd2badf9.zip |
tests: add tests for UpstreamSource.guess_version()
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r-- | tests/06_test_upstream_source.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/06_test_upstream_source.py b/tests/06_test_upstream_source.py index 967c4fa0..34787bf4 100644 --- a/tests/06_test_upstream_source.py +++ b/tests/06_test_upstream_source.py @@ -60,6 +60,7 @@ class TestTar(unittest.TestCase): repacked = self.source.pack(target) self.assertEqual(repacked.is_orig(), True) self.assertEqual(repacked.is_dir(), False) + self.assertEqual(repacked.guess_version(), ('gbp', '0.1')) self._check_tar(repacked, ["gbp/errors.py", "gbp/__init__.py"]) def test_pack_filtered(self): @@ -90,6 +91,7 @@ class TestZip(unittest.TestCase): self.assertEqual(source.is_orig(), False) self.assertEqual(source.is_dir(), False) self.assertEqual(source.unpacked, None) + self.assertEqual(source.guess_version(), ('gbp', '0.1')) source.unpack(str(self.tmpdir)) self.assertNotEqual(source.unpacked, None) |