Example #1
0
 def test_proxy_handler(self):
     h = handlers.ProxyAuthHandler()
     request = {}
     token = h.handle_auth(
         request, headers={}, remote_addr=None,
         remote_user='******')
     self.assertEqual(token.user, 'test_proxy_handler')
Example #2
0
 def __init__(self):
     self.st2_auth_handler = handlers.ProxyAuthHandler()