test_service.py 文件源码

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

项目:txacme 作者: twisted 项目源码 文件源码
def panicing_certs_fixture(draw):
    now = draw(datetimes(min_year=1971, max_year=2030, timezones=[]))
    panic = timedelta(seconds=draw(
        s.integers(min_value=60, max_value=60 * 60 * 24)))
    certs = dict(
        draw(
            s.lists(
                panicing_cert(now, panic),
                min_size=1,
                unique_by=lambda i: i[0])))
    return AcmeFixture(now=now, panic_interval=panic, certs=certs)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号