Back to index

python3.2  3.2.2
Public Member Functions
test.test_fnmatch.TranslateTestCase Class Reference

List of all members.

Public Member Functions

def test_translate

Detailed Description

Definition at line 63 of file test_fnmatch.py.


Member Function Documentation

Definition at line 65 of file test_fnmatch.py.

00065 
00066     def test_translate(self):
00067         self.assertEqual(translate('*'), '.*\Z(?ms)')
00068         self.assertEqual(translate('?'), '.\Z(?ms)')
00069         self.assertEqual(translate('a?b*'), 'a.b.*\Z(?ms)')
00070         self.assertEqual(translate('[abc]'), '[abc]\Z(?ms)')
00071         self.assertEqual(translate('[]]'), '[]]\Z(?ms)')
00072         self.assertEqual(translate('[!x]'), '[^x]\Z(?ms)')
00073         self.assertEqual(translate('[^x]'), '[\\^x]\Z(?ms)')
00074         self.assertEqual(translate('[x'), '\\[x\Z(?ms)')
00075 

Here is the call graph for this function:


The documentation for this class was generated from the following file: