def get_expiry_date(self):
        expiry = self.get('_session_expiry')
        if isinstance(expiry, datetime):
            return expiry
        if not expiry:   # Checks both None and 0 cases
            expiry = settings.SESSION_COOKIE_AGE
        return timezone.now() + timedelta(seconds=expiry)
The passed-in L{Deferred} is available as the L{DeferredContext}'s
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/sessions/backends/base.py/SessionBase.get_expiry_date--crossover with--dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_twisted.py/DeferredContextTests.test_result