def test_dry_run():
    shutil.rmtree('output', ignore_errors=True)
    Phockup('input', 'output', dry_run=True)
    assert (not os.path.isdir('output'))
    dir1 = 'output/2017/01/01'
    dir2 = 'output/2017/10/06'
    dir3 = 'output/unknown'
    dir4 = 'output/2018/01/01/'
    assert (not os.path.isdir(dir1))
    assert (not os.path.isdir(dir2))
    assert (not os.path.isdir(dir3))
    assert (not os.path.isdir(dir4))
def test_dry_run():
    shutil.rmtree('output', ignore_errors=True)
    Phockup('input', 'output', dry_run=True)
    assert (not os.path.isdir('output'))
    dir1 = 'output/2017/01/01'
    dir2 = 'output/2017/10/06'
    dir3 = 'output/unknown'
    dir4 = 'output/2018/01/01/'
    assert (not os.path.isdir(dir1))
    assert (not os.path.isdir(dir2))
    assert (not os.path.isdir(dir3))
    assert (not os.path.isdir(dir4))