def test_render_dummy_parsers(self): release_notes = BaseReleaseNotesGenerator() release_notes.parsers.append(DummyParser("Dummy 1")) release_notes.parsers.append(DummyParser("Dummy 2")) expected = (u"# Dummy 1\r\n\r\ndummy parser output\r\n\r\n" + u"# Dummy 2\r\n\r\ndummy parser output") self.assertEqual(release_notes.render(), expected)
def test_render_dummy_parsers(self): release_notes = BaseReleaseNotesGenerator() release_notes.parsers.append(DummyParser('Dummy 1')) release_notes.parsers.append(DummyParser('Dummy 2')) expected = u'# Dummy 1\r\n\r\ndummy parser output\r\n\r\n' +\ u'# Dummy 2\r\n\r\ndummy parser output' self.assertEqual(release_notes.render(), expected)
def test_render_no_parsers(self): release_notes = BaseReleaseNotesGenerator() content = release_notes.render() self.assertEqual(content, "")
def test_render_no_parsers(self): release_notes = BaseReleaseNotesGenerator() content = release_notes.render() self.assertEqual(content, '')