#NEWLINE# def test_move_directory_out_of_watched( self ) : #NEWLINE# #INDENT# source = self . _create_directory ( 'test' ) #NEWLINE# target = os . path . join ( self . _junk_directory , 'test' ) #NEWLINE# self . _watcher . start ( ) #NEWLINE# os . rename ( source , self ) #NEWLINE# self . assertEqual ( set ( [ source ] ) , self . _watcher . changes ( ) ) #NEWLINE# with open ( os . path . join ( target , 'file' ) , 'w' ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# self . assertEqual ( set ( [ ] ) , self . _watcher . changes ( ) )