#NEWLINE# def apiAnsweringMachine( self , filename ) : #NEWLINE# #INDENT# ' Generates faked API responses by returing content of a given file ' #NEWLINE# f = open ( f , 'r' ) #NEWLINE# for line in f : #NEWLINE# #INDENT# ( yield line ) #NEWLINE# #UNINDENT# f . close ( )