Commit 2a873e1a authored by Guido Günther's avatar Guido Günther

Rename and comment tests

Git-Dch: Ignore
parent 747c05d7
# vim: set fileencoding=utf-8 :
#
# check if --help works
"""Check if --help works"""
import os
import unittest
......
# vim: set fileencoding=utf-8 :
"""Test L{UpstreamSource}'s tarball unpack"""
import glob
import os
import shutil
......
# vim: set fileencoding=utf-8 :
"""Test L{Changelog}'s guess_version_from_upstream"""
import unittest
from gbp.scripts import dch
......@@ -28,7 +32,7 @@ class MockedChangeLog(ChangeLog):
class TestGuessVersionFromUpstream(unittest.TestCase):
"""Dest guess_version_from_upstream"""
"""Test guess_version_from_upstream"""
def test_guess_no_epoch(self):
"""Guess the new version from the upstream tag"""
repo = MockGitRepository(upstream_tag='upstream/1.1')
......
# vim: set fileencoding=utf-8 :
"""Test submodule L{GitRepository} submodule methods"""
import os
import shutil
import tarfile
......
# vim: set fileencoding=utf-8 :
"""Test tarball compression type detection"""
import os
import shutil
import tempfile
......
# 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")
......
# vim: set fileencoding=utf-8 :
"""Test L{FastImport} class"""
import os
import shutil
import tarfile
......
# vim: set fileencoding=utf-8 :
"""Test L{Patch} class"""
import os
import unittest
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment