#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . host = 'http://api.test.com' #NEWLINE# self . client = Client ( host = self . host ) #NEWLINE# if os . environ . get ( 'TRAVIS' ) : #NEWLINE# #INDENT# Config ( os . path . abspath ( os . path . dirname ( __file__ ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# local_path = '{0}/..' . format ( os . path . abspath ( os . path . dirname ( __file__ ) ) ) #NEWLINE# Config ( local_path ) #NEWLINE# #UNINDENT# self . api_key = os . environ . get ( 'SENDGRID_API_KEY' ) #NEWLINE# self . host = os . environ . get ( 'MOCK_HOST' ) #NEWLINE# self . request_headers = { #NEWLINE# #INDENT# 'Content-Type' : 'application/json' , #NEWLINE# 'Authorization' : ( 'Bearer ' + self . api_key ) , #NEWLINE# #UNINDENT# } #NEWLINE# self . client = Client ( host = self . host , request_headers = self . request_headers , version = 3 )