Exemplo n.º 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)
Exemplo n.º 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)