#NEWLINE# @ mock . patch ( 'nova.db.floating_ip_update' ) #NEWLINE# def test_save_no_fixedip( self , update ) : #NEWLINE# #INDENT# update . return_value = fake_floating_ip #NEWLINE# floatingip = floating_ip . FloatingIP ( context = self . context , id = 123 ) #NEWLINE# floatingip . fixed_ip = objects . FixedIP ( context = self . context , id = 456 ) #NEWLINE# self . assertNotIn ( 'fixed_ip' , update . calls [ 1 ] )