def test_custom_expiry_reset(self):
        self.context.set_expiry(None)
        self.context.set_expiry(10)
        self.context.set_expiry(None)
        try:
            self.assertEqual(self.context.get_expiry_age(), settings.WECHAT_CONTEXT_AGE)
        except __HOLE__:
            self.assertEqual(self.context.get_expiry_age(), DEFAULT_WECHAT_CONTEXT_AGE)
dataset/ETHPy150Open wechat-python-sdk/wechat-python-sdk/wechat_sdk/context/framework/django/tests.py/ContextTestsMixin.test_custom_expiry_reset