#NEWLINE# def test_send_access_ip_update( self ) : #NEWLINE# #INDENT# notifications . send_update ( self . context , self . instance , self . instance ) #NEWLINE# self . assertEqual ( 1 , len ( fake_notifier . NOTIFICATIONS ) ) #NEWLINE# notif = fake_notifier . NOTIFICATIONS [ 0 ] #NEWLINE# payload = notif . payload #NEWLINE# access_ip_v4 = str ( self . instance . access_ip_v4 ) #NEWLINE# access_ip_v6 = str ( self . instance . access_ip_v6 ) #NEWLINE# self . assertEqual ( payload [ 'access_ip_v4' ] , access_ip_v4 ) #NEWLINE# self . assertEqual ( payload [ 'access_ip_v6' ] , access_ip_v6 )