web/request.py
changeset 10690 c6290d727c0c
parent 10672 f6f425a54a8d
child 10693 be0bd5aa21b4
equal deleted inserted replaced
10689:49a62b8f6d43 10690:c6290d727c0c
   965 class _NeedAuthAccessMock(object):
   965 class _NeedAuthAccessMock(object):
   966 
   966 
   967     def __getattribute__(self, attr):
   967     def __getattribute__(self, attr):
   968         raise AuthenticationError()
   968         raise AuthenticationError()
   969 
   969 
   970     def __nonzero__(self):
   970     def __bool__(self):
   971         return False
   971         return False
       
   972     
       
   973     __nonzero__ = __bool__
   972 
   974 
   973 class _MockAnonymousSession(object):
   975 class _MockAnonymousSession(object):
   974     sessionid = 'thisisnotarealsession'
   976     sessionid = 'thisisnotarealsession'
   975 
   977 
   976     @property
   978     @property