Пример #1
0
 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)
Пример #2
0
 def normcase(path):
     return path.upper()
Пример #3
0
 def normcase(path):
     return path.upper()