#NEWLINE# def test_broadcasting( self ) : #NEWLINE# #INDENT# 'Broadcast signals' #NEWLINE# on_signal = [ ] #NEWLINE# def listen( signal , args ) : #NEWLINE# #INDENT# on_signal . append ( ( signal , args ) ) #NEWLINE# #UNINDENT# signals . broadcast . connect ( listen ) #NEWLINE# sig = signals . Signal ( 'sig' , [ 'foo' ] ) #NEWLINE# sig . emit ( foo = 42 ) #NEWLINE# self . assertEqual ( on_signal , [ ( listen , { #NEWLINE# #INDENT# 'foo' : 42 , #NEWLINE# #UNINDENT# } ) ] )