def test_keep_original_filenames_and_filenames_case(mocker):
    shutil.rmtree('output', ignore_errors=True)
    mocker.patch.object(Phockup, 'check_directories')
    mocker.patch.object(Phockup, 'walk_directory')
    Phockup('input', 'output', original_filenames=True).process_file('input/UNKNOWN.jpg')
    assert os.path.isfile('output/2017/10/06/UNKNOWN.jpg')
    assert ('unknown.jpg' not in os.listdir('output/2017/10/06'))
    shutil.rmtree('output', ignore_errors=True)
def test_keep_original_filenames_and_filenames_case(mocker):
    shutil.rmtree('output', ignore_errors=True)
    mocker.patch.object(Phockup, 'check_directories')
    mocker.patch.object(Phockup, 'walk_directory')
    Phockup('input', 'output', original_filenames=True).process_file('input/UNKNOWN.jpg')
    assert os.path.isfile('output/2017/10/06/UNKNOWN.jpg')
    assert ('unknown.jpg' not in os.listdir('output/2017/10/06'))
    shutil.rmtree('output', ignore_errors=True)