Add a minimal test for fnmatchcase().

This commit is contained in:
Georg Brandl 2010-02-07 12:34:26 +00:00
parent a34f87f981
commit 308e18b595
1 changed files with 5 additions and 0 deletions

View File

@ -44,6 +44,11 @@ class FnmatchTestCase(unittest.TestCase):
check('\nfoo', 'foo*', False) check('\nfoo', 'foo*', False)
check('\n', '*') check('\n', '*')
def test_fnmatchcase(self):
check = self.check_match
check('AbC', 'abc', 0)
check('abc', 'AbC', 0)
def test_main(): def test_main():
test_support.run_unittest(FnmatchTestCase) test_support.run_unittest(FnmatchTestCase)