def testCallable(self):
        class CallableView(object):
            def __call__(self, *args, **kwargs):
                pass
        login_required(CallableView())
Check that login_required is assignable to callable objects.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/auth/tests/decorators.py/LoginRequiredTestCase.testCallable