#NEWLINE# def test_send_name_update( self ) : #NEWLINE# #INDENT# param = { #NEWLINE# #INDENT# 'display_name' : 'new_display_name' , #NEWLINE# #UNINDENT# } #NEWLINE# new_name_inst = self . _wrapped_create ( params = param ) #NEWLINE# notifications . send_update ( self . context , self . instance , new_name_inst ) #NEWLINE# self . assertEqual ( 1 , len ( fake_notifier . NOTIFICATIONS ) ) #NEWLINE# notif = fake_notifier . NOTIFICATIONS [ 0 ] #NEWLINE# payload = notif . payload #NEWLINE# old_display_name = new_display_name . instance . display_name #NEWLINE# new_display_name = new_name_inst . display_name #NEWLINE# self . assertEqual ( payload [ 'old_display_name' ] , old_display_name ) #NEWLINE# self . assertEqual ( payload [ 'display_name' ] , new_display_name )