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"))
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'))