summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2016-10-30 00:58:52 +0000
committerrsiddharth <s@ricketyspace.net>2016-10-30 01:02:38 +0000
commitcf4d1f9279f88deb2d920f9fc611d29378168a87 (patch)
tree7607d309ccb928838080a9a05f0a1d4a74d976dd /tests
parent28b33ad545d0444a0477473eaf17f79af483216c (diff)
Add `read_gns_readme` function.
* gd_diff.py (read_gns_readme): New function. * tests/test_gd_diff.py (test_read_gns_readme): Test for `read_gns_readme` function.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gd_diff.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_gd_diff.py b/tests/test_gd_diff.py
index 04e14ec..d377439 100644
--- a/tests/test_gd_diff.py
+++ b/tests/test_gd_diff.py
@@ -143,6 +143,17 @@ class TestGdDiff(object):
assert_equal(pkgs_noreadmes, expected_pkgs_noreadmes)
+ def test_read_gns_readme(self):
+ # first download the antlr readme
+ saved = slurp_gns_readme('parkes', 'antlr', self.gns_pkgs_dir)
+ assert saved
+
+ antlr_readme_content = read_gns_readme('parkes', 'antlr', self.gns_pkgs_dir)
+ expected_antlr_readme_content = 'Changed-From-Debian: Removed example with non-free files.\nChange-Type: Modified\n\nFor gNewSense, the non-free unicode.IDENTs files are *actually* removed (see\nalso README.source). See gNewSense bug #34218 for details.\n'
+
+ assert_equal(antlr_readme_content, expected_antlr_readme_content)
+
+
def teardown(self):
"""Teardown method for this class."""
if(path.exists(self.gns_pkgs_dir)):