diff options
author | Guido Günther <agx@sigxcpu.org> | 2016-09-09 19:46:19 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2016-09-12 08:52:14 +0200 |
commit | a306abc3ee1844344eed8a7dff4de32e0ca6fea5 (patch) | |
tree | 56530d5a69aa6a86d3eac9feef937d45ac1110ad | |
parent | 1648fb6210bbd2f28c958d9f8cec79b908373241 (diff) |
test_Changelog: flake8 clean
-rw-r--r-- | tests/test_Changelog.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/test_Changelog.py b/tests/test_Changelog.py index 4de69fea..fa712746 100644 --- a/tests/test_Changelog.py +++ b/tests/test_Changelog.py @@ -3,7 +3,7 @@ """ Test L{gbp.deb.changelog.ChangeLog} """ -from . import context +from . import context # noqa: 401 import os import nose @@ -30,14 +30,14 @@ git-buildpackage (0.5.31) unstable; urgency=low -- Guido Günther <agx@sigxcpu.org> Wed, 28 Sep 2011 20:21:34 +0200 """ -cl_upstream="""python-dateutil (1.0-1) unstable; urgency=low +cl_upstream = """python-dateutil (1.0-1) unstable; urgency=low * Initial release (Closes: #386256) -- Guido Günther <agx@sigxcpu.org> Wed, 6 Sep 2006 10:33:06 +0200 """ -cl_epoch="""xserver-xorg-video-nv (1:1.2.0-3) unstable; urgency=low +cl_epoch = """xserver-xorg-video-nv (1:1.2.0-3) unstable; urgency=low [ Steve Langasek ] * Upload to unstable @@ -45,11 +45,13 @@ cl_epoch="""xserver-xorg-video-nv (1:1.2.0-3) unstable; urgency=low -- David Nusinow <dnusinow@debian.org> Mon, 18 Sep 2006 19:57:45 -0400 """ + def setup(): """Setup test module""" if not os.path.exists('/usr/bin/debchange'): raise nose.SkipTest('debchange tool not present') + def test_parse_debian_only(): """ Parse a the changelog of debian only package @@ -82,6 +84,7 @@ def test_parse_debian_only(): >>> cl.upstream_version """ + def test_parse_no_eopch(): """ Parse a the changelog of a package without eopch @@ -118,6 +121,7 @@ def test_parse_no_eopch(): False """ + def test_parse_eopch(): """ Parse a the changelog of a package without epoch @@ -155,6 +159,7 @@ def test_parse_eopch(): True """ + def test_parse_name(): """ Methods tested: @@ -169,6 +174,7 @@ def test_parse_name(): 'git-buildpackage' """ + def test_parse_last_mod(): """ Test author, email and date of last modification @@ -191,6 +197,7 @@ def test_parse_last_mod(): 'Mon, 17 Oct 2011 10:15:22 +0200' """ + def test_parse_sections(): """ Test if we can parse sections out of the changelog @@ -215,6 +222,7 @@ def test_parse_sections(): '0.5.31' """ + def test_add_section(): """ Test if we can add a section to an existing changelog @@ -261,6 +269,7 @@ def test_add_section(): >>> shutil.rmtree(testdir, ignore_errors=True) """ + def test_add_entry(): """ Test if we can add an entry to an existing changelog |