def test_log_time_slow(self):
        self.client.get('/slow-logging')
        log = APIRequestLog.objects.first()

        # response time is longer than 1000 milliseconds
        self.assertGreaterEqual(log.response_ms, 1000)

        # request_at is time of request, not response
        self.assertGreaterEqual((now() - log.requested_at).total_seconds(), 1)
dataset/ETHPy150Open aschn/drf-tracking/tests/test_mixins.py/TestLoggingMixin.test_log_time_slow/original