def test_expired_outdated(self):
        # Crude, but necessary as auto_now_add field can't be changed.
        with self.settings(EXPIRING_TOKEN_LIFESPAN=timedelta(milliseconds=1)):
            sleep(0.001)
            self.assertTrue(self.token.expired())
Start a weblab instance for the test.
dataset/ETHPy150Open JamesRitchie/django-rest-framework-expiring-tokens/tests/test_models.py/ExpiringTokenTestCase.test_expired_outdated--crossover with--dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/test/selenium/base.py/SeleniumBaseTest.setUp