Example #1
0
 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)))
Example #2
0
 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]))
Example #3
0
 def test_render_no_content(self):
     parser = ChangeNotesLinesParser(None, self.title)
     self.assertEqual(parser.render(), None)
Example #4
0
 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)))
Example #5
0
 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]))
Example #6
0
 def test_render_no_content(self):
     parser = ChangeNotesLinesParser(None, self.title)
     self.assertEqual(parser.render(), None)