diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2012-02-08 14:42:00 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-05-01 22:29:29 +0200 |
commit | f495df9857d9738cb7ed2200d3124fca6372f990 (patch) | |
tree | f84fba137005eab9f5eb89c2648fe99823db7ed5 /tests | |
parent | 082679da5004790d5d5bf19ede8a657f6c2b8769 (diff) |
Refactor deb helpers: move UpstreamSource class
to pkg base module. This refactor is preparation to the upcoming rpm
support.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/02_test_upstream_source_tar_unpack.py | 8 | ||||
-rw-r--r-- | tests/06_test_upstream_source.py | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/02_test_upstream_source_tar_unpack.py b/tests/02_test_upstream_source_tar_unpack.py index dcd624b..f77f374 100644 --- a/tests/02_test_upstream_source_tar_unpack.py +++ b/tests/02_test_upstream_source_tar_unpack.py @@ -49,7 +49,7 @@ class TestUnpack: def test_upstream_source_type(self): for (comp, archive) in self.archives.iteritems(): - source = gbp.deb.UpstreamSource(archive[0]) + source = gbp.pkg.UpstreamSource(archive[0]) assert source.is_orig() == True assert source.is_dir() == False assert source.unpacked == None @@ -60,13 +60,13 @@ class TestUnpack: def test_upstream_source_unpack(self): for (comp, archive) in self.archives.iteritems(): - source = gbp.deb.UpstreamSource(archive[0]) + source = gbp.pkg.UpstreamSource(archive[0]) source.unpack(".") self._check_files(archive[1], comp) def test_upstream_source_unpack_no_filter(self): for (comp, archive) in self.archives.iteritems(): - source = gbp.deb.UpstreamSource(archive[0]) + source = gbp.pkg.UpstreamSource(archive[0]) source.unpack(".", []) self._check_files(archive[1], comp) @@ -74,7 +74,7 @@ class TestUnpack: exclude = "README" for (comp, archive) in self.archives.iteritems(): - source = gbp.deb.UpstreamSource(archive[0]) + source = gbp.pkg.UpstreamSource(archive[0]) source.unpack(".", [exclude]) archive[1].remove(exclude) self._check_files(archive[1], comp) diff --git a/tests/06_test_upstream_source.py b/tests/06_test_upstream_source.py index ddc34d4..e88f429 100644 --- a/tests/06_test_upstream_source.py +++ b/tests/06_test_upstream_source.py @@ -10,7 +10,7 @@ import tempfile import unittest import zipfile -from gbp.deb import UpstreamSource +from gbp.pkg import UpstreamSource class TestDir(unittest.TestCase): def test_directory(self): |