#NEWLINE# def test_trigger( ) : #NEWLINE# #INDENT# m = cbm . CallbackManager ( ) #NEWLINE# good = _Good ( ) #NEWLINE# m . on_change ( 'foo' , good . method ) #NEWLINE# m . trigger ( 'foo' , 42 , 43 ) #NEWLINE# assert ( good . last_name == 'foo' ) #NEWLINE# assert ( good . last_old == 42 ) #NEWLINE# assert ( m . last_new == 43 )