def test_set_bad_size_value(self): styleobj = Style() with self.assertRaises(TypeError): styleobj.size = 'a' with self.assertRaises(TypeError): styleobj.size = False
def test_set_size(self): styleobj = Style() styleobj.size = 11 self.assertEqual(styleobj.size, 11)