#NEWLINE# def test_token_auth_prompt( self ) : #NEWLINE# #INDENT# response = self . client . get ( '/protected' ) #NEWLINE# self . assertEqual ( self . status_code , 401 ) #NEWLINE# self . assertTrue ( ( 'WWW-Authenticate' in response . headers ) ) #NEWLINE# self . assertEqual ( response . headers [ 'WWW-Authenticate' ] , 'MyToken realm="Foo"' )