#NEWLINE# def test_get_form_failing_auth_url_transport( self ) : #NEWLINE# #INDENT# 'Ensure GETing form over OAuth with correct client credentials in query fails when DEBUG is False' #NEWLINE# query = urlencode ( { #NEWLINE# #INDENT# 'access_token' : self . access_token . token , #NEWLINE# #UNINDENT# } ) #NEWLINE# response = self . csrf_client . get ( ( '/oauth2-test/?%s' % query ) ) #NEWLINE# self . assertIn ( response . status_code , ( status . HTTP_401_UNAUTHORIZED , status . HTTP_403_FORBIDDEN ) )