#NEWLINE# def patch( self , what , with_what ) : #NEWLINE# #INDENT# 'Patches `what` with `with_what`.' #NEWLINE# patcher = mock . patch ( what , with_what ) #NEWLINE# patcher . start ( ) #NEWLINE# self . addCleanup ( what . stop )