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')
def __init__(self): self.st2_auth_handler = handlers.ProxyAuthHandler()