示例#1
0
 def test_end_of_string(self):
     self.assertEqual(clean_pattern(ur'ab$'), u'/ab$')
     self.assertEqual(clean_pattern(ur'ab.$'), u'/ab*')
示例#2
0
 def clean_equal(self, pattern, result):
     self.assertEqual(clean_pattern(pattern), '/' + result + '*')
示例#3
0
 def clean_equal(self, pattern, result):
     self.assertEqual(clean_pattern(pattern), '/' + result + '*')
示例#4
0
 def test_end_of_string(self):
     self.assertEqual(clean_pattern(r'ab$'), u'/ab$')
     self.assertEqual(clean_pattern(r'ab.$'), u'/ab*')
示例#5
0
 def clean_equal(self, pattern, result):
     self.assertEqual(clean_pattern(pattern), "/" + result + "*")
示例#6
0
 def test_end_of_string(self):
     self.assertEqual(clean_pattern(r"ab$"), u"/ab$")
     self.assertEqual(clean_pattern(r"ab.$"), u"/ab*")