def setUp(self): super(TestDeleteFloatingIPNetwork, self).setUp() self.network.delete_ip = mock.Mock(return_value=None) # Get the command object to test self.cmd = floating_ip.DeleteFloatingIP(self.app, self.namespace)
def setUp(self): super(TestDeleteFloatingIPCompute, self).setUp() self.app.client_manager.network_endpoint_enabled = False # Get the command object to test self.cmd = fip.DeleteFloatingIP(self.app, None)
def setUp(self): super(TestDeleteFloatingIPCompute, self).setUp() self.app.client_manager.network_endpoint_enabled = False self.compute.floating_ips.delete.return_value = None # Return value of utils.find_resource() self.compute.floating_ips.get.return_value = self.floating_ip # Get the command object to test self.cmd = floating_ip.DeleteFloatingIP(self.app, None)