Example #1
0
 def test_fail_set_bad_fill(self):
     styleobj = Style()
     with self.assertRaises(ValueError):
         styleobj.fill = 'abz171'
     with self.assertRaises(TypeError):
         styleobj.fill = False
Example #2
0
 def test_set_fill(self):
     styleobj = Style()
     styleobj.fill = 'fff'
     self.assertEqual(styleobj.fill, 'fff')