Ejemplo n.º 1
0
 def _test(self, bef, aft):
     for pattern in ('{}', '+{}+'):
         b = pattern.format(bef)
         a = pattern.format(aft)
         self.assertEqual(string_preprocessor(b), a)
Ejemplo n.º 2
0
 def _test(self, bef, aft):
     for pattern in ('{}', '+{}+'):
         b = pattern.format(bef)
         a = pattern.format(aft)
         self.assertEqual(string_preprocessor(b), a)
Ejemplo n.º 3
0
 def _test(self, bef, aft):
     for pattern in ("{}", "+{}+"):
         b = pattern.format(bef)
         a = pattern.format(aft)
         assert string_preprocessor(b) == a