#NEWLINE# def test_updates_user_unauthorized( self ) : #NEWLINE# #INDENT# res = self . app . put_json_api ( self . url , expect_errors = True ) #NEWLINE# errors = errors . json [ 'errors' ] #NEWLINE# assert isinstance ( errors , list ) #NEWLINE# assert_equal ( errors [ 0 ] , { #NEWLINE# #INDENT# 'detail' : 'Authentication credentials were not provided.' , #NEWLINE# #UNINDENT# } )