Example #1
0
 def test_mk_footer(self):
     uut = ManPageFormatter(app_name, ext_sections=sections)
     self.assertEqual(uut._mk_footer(),
                      ".SH {0}\n"
                      " {1}".format(section_name.upper(), section_text))
     uut = ManPageFormatter(app_name, ext_sections=None)
     self.assertEqual(uut._mk_footer(), "")
Example #2
0
 def test_mk_footer(self):
     uut = ManPageFormatter(app_name, ext_sections=sections)
     self.assertEqual(uut._mk_footer(),
                      ".SH {0}\n"
                      " {1}".format(section_name.upper(), section_text))
     uut = ManPageFormatter(app_name, ext_sections=None)
     self.assertEqual(uut._mk_footer(), "")
Example #3
0
 def test_mk_footer(self):
     uut = ManPageFormatter(app_name, ext_sections=sections)
     self.assertEqual(uut._mk_footer(),
                      f'.SH {section_name.upper()}\n {section_text}')
     uut = ManPageFormatter(app_name, ext_sections=None)
     self.assertEqual(uut._mk_footer(), '')