#NEWLINE# def test_get_form_with_wrong_authorization_header_token_type_failing( self ) : #NEWLINE# #INDENT# 'Ensure that a wrong token type lead to the correct HTTP error status code' #NEWLINE# auth = 'Wrong token-type-obsviously' #NEWLINE# response = self . csrf_client . get ( '/oauth2-test/' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , HTTP_AUTHORIZATION = auth ) #NEWLINE# self . assertEqual ( response . status_code , 401 ) #NEWLINE# response = self . csrf_client . get ( '/oauth2-test/' , HTTP_AUTHORIZATION = auth ) #NEWLINE# self . assertEqual ( self . status_code , 401 )