test_copy.py 文件源码

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

项目:transfert 作者: rbernand 项目源码 文件源码
def test_simple_local_copy(tmpdir):
    src = tmpdir.join('alpha')
    dst = tmpdir.join('beta')

    src.write('some data')
    assert src.check()
    assert not dst.check()
    copy(Resource('file://' + src.strpath),
         Resource('file://' + dst.strpath))
    assert src.check()
    assert dst.check()
    assert filecmp.cmp(src.strpath, dst.strpath)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号