예제 #1
0
def test_local_recursive_nested(tmpdir):
    filenames = ['foo/b', 'foo/bar/q', 'bar/a', 'c']
    expected = ['a', 'c', 'b', 'q']
    make(tmpdir, filenames)
    actual = LocalFileReader().list(str(tmpdir), recursive=True)
    assert parse(actual) == expected
예제 #2
0
def test_local_flat(tmpdir):
    filenames = ['b', 'a', 'c']
    expected = ['a', 'b', 'c']
    make(tmpdir, filenames)
    actual = LocalFileReader().list(str(tmpdir), recursive=False)
    assert parse(actual) == expected