diff options
author | Guido Günther <agx@sigxcpu.org> | 2012-03-15 21:19:48 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-03-15 21:19:48 +0100 |
commit | 797a229ff721d2d831e6c08b06c3eea272c4dc2b (patch) | |
tree | e68c705db254c0521d5db1e6a9c4d824b5018e33 /tests | |
parent | 3cac77fc577834f76cfbdc241b18b2fb9c9aeeab (diff) |
deb.changelog: allow to extract author and date
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_Changelog.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/test_Changelog.py b/tests/test_Changelog.py index be22b8a2..9048e205 100644 --- a/tests/test_Changelog.py +++ b/tests/test_Changelog.py @@ -170,3 +170,25 @@ def test_parse_name(): >>> cl.name 'git-buildpackage' """ + +def test_parse_last_mod(): + """ + Test author, email and date of last modification + + Methods tested: + - L{gbp.deb.changelog.ChangeLog.__init__} + + Properties tested: + - L{gbp.deb.changelog.ChangeLog.name} + - L{gbp.deb.changelog.ChangeLog.email} + - L{gbp.deb.changelog.ChangeLog.date} + + >>> import gbp.deb.changelog + >>> cl = gbp.deb.changelog.ChangeLog(cl_debian) + >>> cl.author.startswith('Guido') + True + >>> cl.email + 'agx@sigxcpu.org' + >>> cl.date + 'Mon, 17 Oct 2011 10:15:22 +0200' + """ |