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