Beispiel #1
0
 def test_remove_command_greedy_multi(self):
     a = 'tex \\cmd{bo} tex \\cmd{foo} text'
     result = ut.remove_command_greedy(a, 'cmd', False)
     self.assertEqual(result, 'tex bo tex foo text')
Beispiel #2
0
 def test_remove_command_greedy2(self):
     a = 'tex text \\command{ok \\test{} ok} text'
     result = ut.remove_command_greedy(a, 'command', True)
     self.assertEqual(result, 'tex text  text')
Beispiel #3
0
 def test_remove_command_greedy1(self):
     a = 'tex text \\command[option][option2]{ok \\test{} ok} text'
     result = ut.remove_command_greedy(a, 'command', False)
     self.assertEqual(result, 'tex text ok \\test{} ok text')
Beispiel #4
0
 def test_remove_command_greedy_multi(self):
     a = 'tex \\cmd{bo} tex \\cmd{foo} text'
     result = ut.remove_command_greedy(a, 'cmd', False)
     self.assertEqual(result, 'tex bo tex foo text')
Beispiel #5
0
 def test_remove_command_greedy2(self):
     a = 'tex text \\command{ok \\test{} ok} text'
     result = ut.remove_command_greedy(a, 'command', True)
     self.assertEqual(result, 'tex text  text')
Beispiel #6
0
 def test_remove_command_greedy1(self):
     a = 'tex text \\command[option][option2]{ok \\test{} ok} text'
     result = ut.remove_command_greedy(a, 'command', False)
     self.assertEqual(result, 'tex text ok \\test{} ok text')