test_core_service.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:flash_services 作者: textbook 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号