#NEWLINE# def test_multiple_auth_sources( self ) : #NEWLINE# #INDENT# response = self . app . get ( '/v1/actions' , headers = { #NEWLINE# #INDENT# 'X-Auth-Token' : TOKEN , #NEWLINE# 'St2-Api-key' : KEY1_KEY , #NEWLINE# #UNINDENT# } , expect_errors = True ) #NEWLINE# self . assertTrue ( ( 'application/json' in response . headers [ 'content-type' ] ) ) #NEWLINE# self . assertEqual ( response . status_int , 401 ) #NEWLINE# self . assertEqual ( response . json_body [ 'faultstring' ] , 'Unauthorized - Only one of Token or API key expected.' )