def test_set_bad_bold(self): styleobj = Style() with self.assertRaises(TypeError): styleobj.bold = 1 with self.assertRaises(TypeError): styleobj.bold = "True"
def test_set_bold(self): styleobj = Style() styleobj.bold = True self.assertTrue(styleobj.bold) styleobj.bold = False self.assertFalse(styleobj.bold)