#NEWLINE# def patch( self , * args , **kwargs ) : #NEWLINE# #INDENT# patcher = mock . patch ( * args , ** m ) #NEWLINE# m = patcher . start ( ) #NEWLINE# self . addCleanup ( patcher . stop ) #NEWLINE# return m