From 797a229ff721d2d831e6c08b06c3eea272c4dc2b Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 15 Mar 2012 21:19:48 +0100 Subject: deb.changelog: allow to extract author and date --- tests/test_Changelog.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'tests') 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' + """ -- cgit v1.2.3