def test_rewrite_link(self): """Test we're correctly rewriting the passed in link.""" self.assertEqual(rewrite_links(GITHUB_ISSUES_LINK_HEADER), REWRITTEN_ISSUES_LINK_HEADER) self.assertEqual(rewrite_links(GITHUB_SEARCH_LINK_HEADER), REWRITTEN_SEARCH_LINK_HEADER) self.assertEqual(rewrite_links(GITHUB_COMMENTS_LINK_HEADER), REWRITTEN_COMMENTS_LINK_HEADER)
def test_rewrite_link(self): '''Test we're correctly rewriting the passed in link.''' self.assertEqual(rewrite_links(GITHUB_ISSUES_LINK_HEADER), REWRITTEN_ISSUES_LINK_HEADER) self.assertEqual(rewrite_links(GITHUB_SEARCH_LINK_HEADER), REWRITTEN_SEARCH_LINK_HEADER) self.assertEqual(rewrite_links(GITHUB_COMMENTS_LINK_HEADER), REWRITTEN_COMMENTS_LINK_HEADER)