예제 #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",
     )
예제 #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")
예제 #3
0
 def test_try_syntax_from_message_no_try_syntax(self):
     self.assertEqual(decision.try_syntax_from_message("abc | def"), "")
예제 #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")
예제 #5
0
 def test_try_syntax_from_message_empty(self):
     self.assertEqual(decision.try_syntax_from_message(""), "")