예제 #1
0
 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)
예제 #2
0
 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)