Пример #1
0
 def test_fail_set_underline(self):
     styleobj = Style()
     with self.assertRaises(TypeError):
         styleobj.underline = 1
     with self.assertRaises(TypeError):
         styleobj.underline = "True"
Пример #2
0
 def test_set_underline(self):
     styleobj = Style()
     styleobj.underline = True
     self.assertTrue(styleobj.underline)