summaryrefslogtreecommitdiffhomepage
path: root/tests/06_test_upstream_source.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-12-28 22:04:03 +0100
committerGuido Günther <agx@sigxcpu.org>2011-12-29 09:45:15 +0100
commit2a873e1a4d6babf37e417c9da3e4e1b3640bc347 (patch)
treee97ee2ab9537d91ab7ef251a9d7da66b6e072505 /tests/06_test_upstream_source.py
parent747c05d728d3ab15c84ff22e077c7943d924d695 (diff)
Rename and comment tests
Git-Dch: Ignore
Diffstat (limited to 'tests/06_test_upstream_source.py')
-rw-r--r--tests/06_test_upstream_source.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/06_test_upstream_source.py b/tests/06_test_upstream_source.py
index e414fa43..96402f4e 100644
--- a/tests/06_test_upstream_source.py
+++ b/tests/06_test_upstream_source.py
@@ -1,4 +1,6 @@
-# Test the UpstreamSource class
+# vim: set fileencoding=utf-8 :
+
+"""Test the L{UpstreamSource} class"""
import glob
import os
@@ -20,6 +22,7 @@ class TestDir(unittest.TestCase):
class TestTar(unittest.TestCase):
+ """Test if packing tar archives works"""
def _check_tar(self, us, positive=[], negative=[]):
t = tarfile.open(name=us.path, mode="r:bz2")
for f in positive:
@@ -64,6 +67,7 @@ class TestTar(unittest.TestCase):
class TestZip(unittest.TestCase):
+ """Test if unpacking zip archives works"""
def setUp(self):
self.tmpdir = tempfile.mkdtemp(prefix='gbp_%s_' % __name__, dir='.')
self.zipfile = os.path.join(self.tmpdir, "gbp-0.1.zip")