#NEWLINE# def test_unauthorized_access( self ) : #NEWLINE# #INDENT# resp = self . get ( '/artists/' , authenticate = False ) #NEWLINE# nose . eq_ ( resp . status_code , 401 ) #NEWLINE# resp = self . get ( '/artists/1/' , authenticate = False ) #NEWLINE# nose . eq_ ( resp . status_code , 401 ) #NEWLINE# payload = self . get_payload ( ) #NEWLINE# resp = self . post ( '/artists/' , data = self , authenticate = False ) #NEWLINE# nose . eq_ ( resp . status_code , 401 ) #NEWLINE# payload = self . get_payload ( ) #NEWLINE# resp = self . put ( '/artists/' , data = payload , authenticate = False ) #NEWLINE# nose . eq_ ( resp . status_code , 401 ) #NEWLINE# resp = self . delete ( '/artists/' , authenticate = False ) #NEWLINE# nose . eq_ ( resp . status_code , 401 )