def test_get_file_name_is_original_on_exception(mocker):
    mocker.patch.object(Phockup, 'check_directories')
    mocker.patch.object(Phockup, 'walk_directory')
    assert (Phockup('in', 'out').get_file_name('Bar/Foo.jpg', None) == 'Foo.jpg')
def test_get_file_name_is_original_on_exception(mocker):
    mocker.patch.object(Phockup, 'check_directories')
    mocker.patch.object(Phockup, 'walk_directory')
    assert (Phockup('in', 'out').get_file_name('Bar/Foo.jpg', None) == 'Foo.jpg')