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(), "")
Exemple #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(), "")
 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(), '')