def test_multiple_issue_numbers_per_line(self): change_note = "# {}\r\nfix #2 also does fix #3 and fix #5\r\n".format( self.title ) parser = IssuesParser(None, self.title) parser.parse(change_note) self.assertEqual(parser.content, [2, 3, 5])
def test_issue_numbers_with_links(self): change_note = "# {}\r\nfix [#2](https://issue)\r\nfix [#3](http://issue)\r\nfix #5\r\n".format( self.title ) parser = IssuesParser(None, self.title) parser.parse(change_note) self.assertEqual(parser.content, [2, 3, 5])
def test_issue_numbers_and_other_numbers(self): change_note = "# {}\r\nfixes #2 but not # 3 or 5".format(self.title) parser = IssuesParser(None, self.title) parser.parse(change_note) self.assertEqual(parser.content, [2])
def test_issue_numbers(self): change_note = "# {}\r\nfix #2\r\nfix #3\r\nfix #5\r\n".format( self.title) parser = IssuesParser(None, self.title) parser.parse(change_note) self.assertEqual(parser.content, [2, 3, 5])
def test_issue_numbers_and_other_numbers(self): change_note = "# {}\r\nfixes #2 but not # 3 or 5".format(self.title) parser = IssuesParser(None, self.title) parser.parse(change_note) self.assertEqual(parser.content, [2])
def test_issue_numbers(self): change_note = "# {}\r\nfix #2\r\nfix #3\r\nfix #5\r\n".format(self.title) parser = IssuesParser(None, self.title) parser.parse(change_note) self.assertEqual(parser.content, [2, 3, 5])