예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
 def test_render_no_parsers(self):
     release_notes = BaseReleaseNotesGenerator()
     content = release_notes.render()
     self.assertEqual(content, "")
예제 #5
0
 def test_render_no_parsers(self):
     release_notes = BaseReleaseNotesGenerator()
     content = release_notes.render()
     self.assertEqual(content, '')