def METHOD_NAME(self):
    url = reverse(secure_post, args=[self.domain])
    user = self._create_user(access_api=True, access_mobile_endpoints=False)
    with patch('corehq.apps.receiverwrapper.views.notify_exception') as mock_notify_exception:
        self.assert_api_response(200, url)
        mock_notify_exception.assert_called_once_with(ANY, message=ANY)
        args, kwargs = mock_notify_exception.call_args
        self.assertIsInstance(args[0], WSGIRequest)
        expected_message = f"NoMobileEndpointsAccess: invalid request by {user.get_id} on {self.domain}"
        self.assertEqual(expected_message, kwargs.get("message"))