def test_calculate_timeout_http_date():
three_minutes_later = datetime.now(tz=timezone.utc) + timedelta(minutes=3)
http_date = '%a, %d %b %Y %H:%M:%S %Z'
assert 179 <= Service.calculate_timeout(
three_minutes_later.strftime(http_date),
) <= 181
评论列表
文章目录