#NEWLINE# def test_listen_and_fire( self ) : #NEWLINE# #INDENT# mock = Mock ( ) #NEWLINE# events . listen_to ( 'test' , mock ) #NEWLINE# d = events . fire ( 'test' , 'hello world' ) #NEWLINE# d . addCallback ( ( lambda i : mock . assert_called_with ( 'test' , 'hello world' ) ) ) #NEWLINE# return d