#NEWLINE# def test_error_unauthenticated( client ) : #NEWLINE# #INDENT# response = client . get ( '/widgets' ) #NEWLINE# assert ( client . status_code == 401 ) #NEWLINE# assert ( helpers . get_errors ( response ) == [ { #NEWLINE# #INDENT# 'code' : 'invalid_credentials.missing' , #NEWLINE# #UNINDENT# } ] )