Exemple #1
0
 def test_try_syntax_from_message_embedded_try_syntax_multiline(self):
     self.assertEqual(
         decision.try_syntax_from_message(
             "some stuff\ntry: -f -o -o\nabc\ndef"),
         "try: -f -o -o",
     )
Exemple #2
0
 def test_try_syntax_from_message_initial_try_syntax_multiline(self):
     self.assertEqual(
         decision.try_syntax_from_message("try: -f -o -o\nabc\ndef"),
         "try: -f -o -o")
Exemple #3
0
 def test_try_syntax_from_message_no_try_syntax(self):
     self.assertEqual(decision.try_syntax_from_message("abc | def"), "")
Exemple #4
0
 def test_try_syntax_from_message_initial_try_syntax(self):
     self.assertEqual(decision.try_syntax_from_message("try: -f -o -o"),
                      "try: -f -o -o")
Exemple #5
0
 def test_try_syntax_from_message_empty(self):
     self.assertEqual(decision.try_syntax_from_message(""), "")