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)
示例#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)