def test_format_functions(self): uut = ManPageFormatter(app_name) self.assertEqual(ManPageFormatter._markup("a-b"), "a\\-b") self.assertEqual(ManPageFormatter._underline("test"), "\\fItest\\fR") self.assertEqual(ManPageFormatter._bold("test"), "\\fBtest\\fR") self.assertEqual(ManPageFormatter._bold("\\fBtest"), "\\fBtest\\fR") self.assertEqual(ManPageFormatter._bold("test\\fR"), "\\fBtest\\fR")
def test_format_functions(self): self.assertEqual(ManPageFormatter._markup('a-b'), 'a\\-b') self.assertEqual(ManPageFormatter._underline('test'), '\\fItest\\fR') self.assertEqual(ManPageFormatter._bold('test'), '\\fBtest\\fR') self.assertEqual(ManPageFormatter._bold('\\fBtest'), '\\fBtest\\fR') self.assertEqual(ManPageFormatter._bold('test\\fR'), '\\fBtest\\fR')