| LEFT | RIGHT |
| 1 """Test cases for the fnmatch module.""" | 1 """Test cases for the fnmatch module.""" |
| 2 | 2 |
| 3 from test import support | 3 from test import support |
| 4 import unittest | 4 import unittest |
| 5 | 5 |
| 6 from fnmatch import fnmatch, fnmatchcase | 6 from fnmatch import fnmatch, fnmatchcase |
| 7 | 7 |
| 8 | 8 |
| 9 class FnmatchTestCase(unittest.TestCase): | 9 class FnmatchTestCase(unittest.TestCase): |
| 10 def check_match(self, filename, pattern, should_match=1): | 10 def check_match(self, filename, pattern, should_match=1): |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 def test_bytes(self): | 46 def test_bytes(self): |
| 47 self.check_match(b'test', b'te*') | 47 self.check_match(b'test', b'te*') |
| 48 self.check_match(b'test\xff', b'te*\xff') | 48 self.check_match(b'test\xff', b'te*\xff') |
| 49 | 49 |
| 50 def test_main(): | 50 def test_main(): |
| 51 support.run_unittest(FnmatchTestCase) | 51 support.run_unittest(FnmatchTestCase) |
| 52 | 52 |
| 53 | 53 |
| 54 if __name__ == "__main__": | 54 if __name__ == "__main__": |
| 55 test_main() | 55 test_main() |
| LEFT | RIGHT |