#NEWLINE# def test_watch_glob( self ) : #NEWLINE# #INDENT# watcher = Watcher ( ) #NEWLINE# watcher . watch ( ( tmpdir + '/*' ) ) #NEWLINE# assert ( watcher . examine ( ) == ( None , None ) ) #NEWLINE# with open ( os . path . join ( tmpdir , 'foo.pyc' ) , 'w' ) as f : #NEWLINE# #INDENT# f . write ( '' ) #NEWLINE# #UNINDENT# assert ( watcher . examine ( ) == ( None , None ) ) #NEWLINE# filepath = os . path . join ( tmpdir , 'foo' ) #NEWLINE# with open ( filepath , 'w' ) as f : #NEWLINE# #INDENT# f . write ( '' ) #NEWLINE# #UNINDENT# rv = watcher . examine ( ) #NEWLINE# assert ( rv [ 0 ] == os . path . abspath ( filepath ) )