示例#1
0
def test_remove_checksum(tmpdir):

    with open(str(tmpdir / "hello.md5sum"), "w+") as f:
        f.write("aaaaa02abc4b2a76b9719d911017c592")
    remove_checksum(str(tmpdir / "hello"))

    assert not os.path.exists(str(tmpdir / "hello.md5sum"))

    remove_checksum(str(tmpdir / "not_exists"))
示例#2
0
def test_remove_checksum(tmpdir):

    with open(str(tmpdir / 'hello.md5sum'), 'w+') as f:
        f.write('aaaaa02abc4b2a76b9719d911017c592')
    remove_checksum(str(tmpdir / 'hello'))

    assert not os.path.exists(str(tmpdir / 'hello.md5sum'))

    remove_checksum(str(tmpdir / 'not_exists'))
示例#3
0
def test_remove_checksum(tmpdir):

    with open(str(tmpdir / 'hello.md5sum'), 'w+') as f:
        f.write('aaaaa02abc4b2a76b9719d911017c592')
    remove_checksum(str(tmpdir / 'hello'))

    assert not os.path.exists(str(tmpdir / 'hello.md5sum'))

    remove_checksum(str(tmpdir / 'not_exists'))