#NEWLINE# def make_fut( self , result , makemock = True ) : #NEWLINE# #INDENT# fut = asyncio . Future ( loop = self . loop ) #NEWLINE# fut . set_result ( result ) #NEWLINE# if makemock : #NEWLINE# #INDENT# m = mock . Mock ( ) #NEWLINE# m . return_value = fut #NEWLINE# return m #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return makemock