def METHOD_NAME(tmp_path: Path):
    # given
    scanner = ImageScanner()
    # prepare local paths
    twistcli_path = tmp_path / "twistcli"
    scanner.twistcli_path = twistcli_path
    # when
    scanner.cleanup_scan()
    # then
    assert not twistcli_path.exists()