#NEWLINE# def test_child_watcher_once( self ) : #NEWLINE# #INDENT# update = threading . Event ( ) #NEWLINE# all_children = [ 'fred' ] #NEWLINE# cwatch = self . client . ChildrenWatch ( self . path ) #NEWLINE# @ cwatch #NEWLINE# def changed( children ) : #NEWLINE# #INDENT# while all_children : #NEWLINE# #INDENT# all_children . pop ( ) #NEWLINE# #UNINDENT# all_children . extend ( children ) #NEWLINE# update . set ( ) #NEWLINE# #UNINDENT# update . wait ( 10 ) #NEWLINE# eq_ ( all_children , [ ] ) #NEWLINE# update . clear ( ) #NEWLINE# @ raises ( KazooException ) #NEWLINE# def test_it( ) : #NEWLINE# #INDENT# @ cwatch #NEWLINE# def changed_again( children ) : #NEWLINE# #INDENT# update . set ( ) #NEWLINE# #UNINDENT# #UNINDENT# test_it ( )