def test_fonts(self):
     text = "Hello Robbie!"
     self.assertEqual(cgitb.small(text), "<small>{}</small>".format(text))
     self.assertEqual(cgitb.strong(text),
                      "<strong>{}</strong>".format(text))
     self.assertEqual(cgitb.grey(text),
                      '<font color="#909090">{}</font>'.format(text))
 def test_blanks(self):
     self.assertEqual(cgitb.small(""), "")
     self.assertEqual(cgitb.strong(""), "")
     self.assertEqual(cgitb.grey(""), "")
Esempio n. 3
0
 def test_fonts(self):
     text = "Hello Robbie!"
     self.assertEqual(cgitb.small(text), "<small>{}</small>".format(text))
     self.assertEqual(cgitb.strong(text), "<strong>{}</strong>".format(text))
     self.assertEqual(cgitb.grey(text),
                      '<font color="#909090">{}</font>'.format(text))
Esempio n. 4
0
 def test_blanks(self):
     self.assertEqual(cgitb.small(""), "")
     self.assertEqual(cgitb.strong(""), "")
     self.assertEqual(cgitb.grey(""), "")
Esempio n. 5
0
 def test_blanks(self):
     self.assertEqual(cgitb.small(''), '')
     self.assertEqual(cgitb.strong(''), '')
     self.assertEqual(cgitb.grey(''), '')
Esempio n. 6
0
 def update_event(self, inp=-1):
     self.set_output_val(0, cgitb.strong(self.input(0)))