#NEWLINE# def test_look_after_known_watcher_triggers_restart( self ) : #NEWLINE# #INDENT# call_mock = self . setup_call_mock ( watcher_name = 'foo' ) #NEWLINE# self . setup_os_mock ( realpath = '/bar/foo' , mtime = 42 ) #NEWLINE# plugin = self . make_plugin ( CommandReloader , active = True ) #NEWLINE# plugin . cmd_files = { #NEWLINE# #INDENT# 'foo' : { #NEWLINE# #INDENT# 'path' : 'foo' , #NEWLINE# 'mtime' : 1 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# plugin . look_after ( ) #NEWLINE# self . assertEqual ( self . cmd_files , { #NEWLINE# #INDENT# 'foo' : { #NEWLINE# #INDENT# 'path' : '/bar/foo' , #NEWLINE# 'mtime' : 42 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# call_mock . assert_called_with ( 'restart' , name = 'foo' )