#NEWLINE# def test_authentication_error( self ) : #NEWLINE# #INDENT# 'Test raises AuthenticationError with invalid api key' #NEWLINE# invalid_api = api ( 'INVALID_KEY' , raise_errors = True , ** invalid_api . options ) #NEWLINE# self . assertRaises ( AuthenticationError , invalid_api . emails )