def test_exception_for_no_write_access_when_creating_output_dir(mocker):
    mocker.patch.object(Phockup, 'walk_directory')
    with pytest.raises(OSError, match="Cannot create output '/root/phockup' directory. No write access!"):
        Phockup('input', '/root/phockup')
def test_exception_for_no_write_access_when_creating_output_dir(mocker):
    mocker.patch.object(Phockup, 'walk_directory')
    with pytest.raises(OSError, match="Cannot create output '/root/phockup' directory. No write access!"):
        Phockup('input', '/root/phockup')