Beispiel #1
0
 def test_end_of_string(self):
     self.assertEqual(clean_pattern(r'ab$'), u'/ab$')
     self.assertEqual(clean_pattern(r'ab.$'), u'/ab*')
Beispiel #2
0
 def clean_equal(self, pattern, result):
     self.assertEqual(clean_pattern(pattern), '/' + result + '*')