예제 #1
0
 def test_variable(self):
     rw = ReplaceWith([Var('A')])
     self.assertCountEqual(
         (
             ['x'],
         ),
         rw.replace(ignore_matched_input, (), {'A': 'x'})
     )
예제 #2
0
 def test_literal(self):
     rw = ReplaceWith(['qu'])
     self.assertCountEqual(
         (
             ['qu'],
         ),
         rw.replace(ignore_matched_input, (), {})
     )