def test_render_multiple_content(self): parser = ChangeNotesLinesParser(None, self.title) content = ['foo', 'bar'] parser.content = content self.assertEqual( parser.render(), '# {}\r\n\r\n{}'.format(self.title, '\r\n'.join(content)))
def test_render_multiple_content(self): parser = ChangeNotesLinesParser(None, self.title) content = ['foo', 'bar'] parser.content = content self.assertEqual(parser.render(), '# {}\r\n\r\n{}'.format(self.title, '\r\n'.join(content)))
def test_render_one_content(self): parser = ChangeNotesLinesParser(None, self.title) content = ['foo'] parser.content = content self.assertEqual(parser.render(), '# {}\r\n\r\n{}'.format(self.title, content[0]))