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