def test_fail_set_underline(self): styleobj = Style() with self.assertRaises(TypeError): styleobj.underline = 1 with self.assertRaises(TypeError): styleobj.underline = "True"
def test_set_underline(self): styleobj = Style() styleobj.underline = True self.assertTrue(styleobj.underline)