implementation for has_permission

https://github.com/plone/plone.api/issues/172
I was following the same pattern as the existing 'Get user permissions' doctests above it, as this method is very similar. Are those doctests also incorrect?