示例#1
0
 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")
示例#2
0
 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")
示例#3
0
 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')
示例#4
0
 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')