def test_slow_execution(self):
        self.executed = 0

        @enable
        def slow_func():
            time.sleep(1)
            self.executed += 1

        slow_func.after_response()

        self.assertEqual(self.executed, 0)
        self.client.get('/')
        self.assertEqual(self.executed, 0)

        slow_func.after_response()

        before_time = time.time()
        self.client.get('/')
        after_time = time.time()
        self.assertTrue(0.5 < after_time - before_time)
dataset/ETHPy150Open defrex/django-after-response/after_response/tests.py/AfterResponseTest.test_slow_execution/swapped operands of `<`