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(""), "")
Exemplo 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))
Exemplo n.º 4
0
 def test_blanks(self):
     self.assertEqual(cgitb.small(""), "")
     self.assertEqual(cgitb.strong(""), "")
     self.assertEqual(cgitb.grey(""), "")
Exemplo n.º 5
0
 def test_blanks(self):
     self.assertEqual(cgitb.small(''), '')
     self.assertEqual(cgitb.strong(''), '')
     self.assertEqual(cgitb.grey(''), '')
Exemplo n.º 6
0
 def update_event(self, inp=-1):
     self.set_output_val(0, cgitb.strong(self.input(0)))