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