aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/doctests/test_Changelog.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/doctests/test_Changelog.py b/tests/doctests/test_Changelog.py
index 9525e76..cddf5ae 100644
--- a/tests/doctests/test_Changelog.py
+++ b/tests/doctests/test_Changelog.py
@@ -223,6 +223,23 @@ def test_parse_sections():
"""
+def test_get_changes():
+ """
+ Test if we can get changes
+
+ Methods tested:
+ - L{gbp.deb.changelog.ChangeLog.__init__}
+ - L{gbp.deb.changelog.ChangeLog.get_changes}
+
+ >>> import gbp.deb.changelog
+ >>> cl = gbp.deb.changelog.ChangeLog(cl_debian)
+ >>> len(cl.get_changes().split('\\n'))
+ 19
+ >>> len(cl.get_changes('0.5.31').split('\\n'))
+ 7
+ """
+
+
def test_add_section():
"""
Test if we can add a section to an existing changelog