#NEWLINE# def setup_os_mock( self , realpath , mtime ) : #NEWLINE# #INDENT# patcher = patch ( 'circus.plugins.command_reloader.os' ) #NEWLINE# os_mock = patcher . start ( ) #NEWLINE# self . addCleanup ( patcher . stop ) #NEWLINE# os_mock . path . realpath . return_value = realpath #NEWLINE# os_mock . stat . return_value . st_mtime = mtime #NEWLINE# return os_mock