def test_get_file_name(mocker):
    mocker.patch.object(Phockup, 'check_directories')
    mocker.patch.object(Phockup, 'walk_directory')
    date = {'date': datetime(2017, 1, 1, 1, 1, 1), 'subseconds': '20'}
    assert (Phockup('in', 'out').get_file_name('Bar/Foo.jpg', date) == '20170101-01010120.jpg')
def test_get_file_name(mocker):
    mocker.patch.object(Phockup, 'check_directories')
    mocker.patch.object(Phockup, 'walk_directory')
    date = {'date': datetime(2017, 1, 1, 1, 1, 1), 'subseconds': '20'}
    assert (Phockup('in', 'out').get_file_name('Bar/Foo.jpg', date) == '20170101-01010120.jpg')