'Tests that a DELETE request correctly deletes a service when a valid
service uuid is provided for an existing service.'

def test_delete_takes_uuid_for_id(self):

    service = self.start_service('compute', 'fake-compute-host').service_ref
    with mock.patch.object(self.controller.host_api, 'service_delete') as service_delete:
        self.controller.delete(self.req, service.uuid)
        service_delete.assert_called_once_with(self.req.environ['nova.context'], service.uuid)
        self.assertEqual(204, self.controller.delete.wsgi_code)
