#NEWLINE# def test_watch( self ) : #NEWLINE# #INDENT# self . client . ensure_path ( self . path ) #NEWLINE# watcher = self . _makeOne ( self . client , self . path , 0.1 ) #NEWLINE# result = watcher . start ( ) #NEWLINE# ( children , asy ) = result . get ( ) #NEWLINE# eq_ ( len ( children ) , 0 ) #NEWLINE# eq_ ( asy . ready ( ) , False ) #NEWLINE# self . client . create ( ( ( children . path + '/' ) + 'fred' ) ) #NEWLINE# asy . get ( timeout = 1 ) #NEWLINE# eq_ ( asy . ready ( ) , True )