def test_extract_line_information_with_invalid_lineno(self): self.assertEqual(action.extract_line_information("index.rst:a:"), None)
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), )
def test_extract_line_information_with_invalid_info(self): self.assertEqual(action.extract_line_information("adsfafadf"), None)
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), )