#NEWLINE# def _create_patch( self , name , func = None ) : #NEWLINE# #INDENT# patcher = mock . patch ( name ) #NEWLINE# thing = patcher . start ( ) #NEWLINE# self . addCleanup ( patcher . stop ) #NEWLINE# return thing