def test_find_in_path_success_2(ex_tmpdir): assert len(_util.find_in_path(str(ex_tmpdir), '^L.*.MTL.txt$', True)) == 1 assert len(_util.find_in_path(str(ex_tmpdir), '.*.txt$', True)) == 2
def test_find_in_path_success_3(ex_tmpdir): assert len(_util.find_in_path(str(ex_tmpdir), '^asdf$', True)) == 0 assert len(_util.find_in_path(str(ex_tmpdir), '^asdf$')) == 0
def test_find_in_path_success_1(ex_tmpdir): assert len(_util.find_in_path(str(ex_tmpdir), 'L*MTL.txt')) == 1 assert len(_util.find_in_path(str(ex_tmpdir), '*.txt')) == 2