test_types.py 文件源码

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

项目:amqpframe 作者: celery 项目源码 文件源码
def test_continious_bools_can_be_packed_unpacked(data):
    bools = data.draw(hs.lists(strategies.bools))
    stream = io.BytesIO()

    at.Bool.many_to_bytestream(bools, stream)
    stream.seek(0)
    new = at.Bool.many_from_bytestream(stream, len(bools))

    assert bools == new
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号