def test_fnmatch_custom_normcase(self): normcase = lambda path: path.upper() p = Path('FooBar') assert p.fnmatch('foobar', normcase=normcase) assert p.fnmatch('FOO[ABC]AR', normcase=normcase)
def normcase(path): return path.upper()