'An unauthenticated request made against a view that contains no
`authentication_classes` but do contain `permissions_classes` the error
code returned should be 403 with the exception\'s message.'

def test_permission_message_with_no_authentication_classes(self):

    class DummyPermission(permissions.BasePermission, ):
        message = u'Dummy    permission    message'
        def has_permission(self, request, view):
            return False
    request = factory.get(u'/')
    view = MockView.as_view(authentication_classes=(), permission_classes=(DummyPermission,))
    response = view(request)
    assert (response.status_code == status.HTTP_403_FORBIDDEN)
    assert (response.data == {u'detail': u'Dummy    permission    message'})
