Exemplo n.º 1
0
 def test_rewrite_and_sanitize_link(self):
     self.assertNotIn('access_token=',
                      rewrite_and_sanitize_link(ACCESS_TOKEN_LINK))
     self.assertEqual(rewrite_and_sanitize_link(ACCESS_TOKEN_LINK),
                      REWRITTEN_ISSUES_LINK_HEADER)
Exemplo n.º 2
0
 def test_rewrite_and_sanitize_link(self):
     """Rewrite and Sanitize Links test."""
     self.assertNotIn('access_token=',
                      rewrite_and_sanitize_link(ACCESS_TOKEN_LINK))
     self.assertEqual(rewrite_and_sanitize_link(ACCESS_TOKEN_LINK),
                      REWRITTEN_ISSUES_LINK_HEADER)