#NEWLINE# def test_oauth_token_required_no_token( self ) : #NEWLINE# #INDENT# req = HttpRequest ( ) #NEWLINE# req . user = self . user #NEWLINE# resp = view_token ( req ) #NEWLINE# self . assertEqual ( resp . status_code , 302 ) #NEWLINE# self . assertEqual ( resp . url , reverse ( 'oauth_login' ) )