コード例 #1
0
 def test_extract_line_information_with_invalid_lineno(self):
     self.assertEqual(action.extract_line_information("index.rst:a:"), None)
コード例 #2
0
 def test_extract_line_information_with_line_info(self):
     self.assertEqual(
         action.extract_line_information(
             "warnings_and_errors/contents.rst:19: "),
         ("warnings_and_errors{}contents.rst".format(os.sep), 19),
     )
コード例 #3
0
 def test_extract_line_information_with_invalid_info(self):
     self.assertEqual(action.extract_line_information("adsfafadf"), None)
コード例 #4
0
 def test_extract_line_information_with_no_line_info(self):
     self.assertEqual(
         action.extract_line_information("warnings_and_errors/index.rst: "),
         ("warnings_and_errors{}index.rst".format(os.sep), 1),
     )