#NEWLINE# def test__delete_server_with_fip( self ) : #NEWLINE# #INDENT# fip = { #NEWLINE# #INDENT# 'ip' : 'foo_ip' , #NEWLINE# 'id' : 'foo_id' , #NEWLINE# 'is_floating' : True , #NEWLINE# #UNINDENT# } #NEWLINE# ( scenario , server ) = self . get_scenario ( ) #NEWLINE# scenario . _delete_floating_ip = mock . Mock ( ) #NEWLINE# scenario . _delete_server_with_fip ( fip , fip , force_delete = True ) #NEWLINE# scenario . _delete_floating_ip . assert_called_once_with ( server , fip ) #NEWLINE# scenario . _delete_server . assert_called_once_with ( server , force = True )