summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-02-07 12:34:26 (GMT)
committerGeorg Brandl <georg@python.org>2010-02-07 12:34:26 (GMT)
commit308e18b595a26be08d52987336ea321b05f17860 (patch)
tree0b5291907a8ef0cc5abc3e8b2913af9fdb192f10
parenta34f87f98120bb470136f3be212c67d5ef981379 (diff)
downloadcpython-308e18b595a26be08d52987336ea321b05f17860.zip
cpython-308e18b595a26be08d52987336ea321b05f17860.tar.gz
cpython-308e18b595a26be08d52987336ea321b05f17860.tar.bz2
Add a minimal test for fnmatchcase().
-rw-r--r--Lib/test/test_fnmatch.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_fnmatch.py b/Lib/test/test_fnmatch.py
index fbcbe70..aba76ba 100644
--- a/Lib/test/test_fnmatch.py
+++ b/Lib/test/test_fnmatch.py
@@ -44,6 +44,11 @@ class FnmatchTestCase(unittest.TestCase):
check('\nfoo', 'foo*', False)
check('\n', '*')
+ def test_fnmatchcase(self):
+ check = self.check_match
+ check('AbC', 'abc', 0)
+ check('abc', 'AbC', 0)
+
def test_main():
test_support.run_unittest(FnmatchTestCase)