'Does the entity deletion based on naming convention.'

def _test_entity_delete(self, entity):

    entity_id = uuidutils.generate_uuid()
    path = ((self._resource_prefix + '/') if self._resource_prefix else '')
    path += self._plural_mappings.get(entity, (entity + 's'))
    if self._translate_resource_name:
        path = path.replace('_', '-')
    res = self.api.delete(test_base._get_path(path, id=entity_id, fmt=self.fmt))
    delete_entity = getattr(self.plugin.return_value, ('delete_' + entity))
    delete_entity.assert_called_with(mock.ANY, entity_id)
    self.assertEqual(exc.HTTPNoContent.code, res.status_int)
