コード例 #1
0
 def test_set_bad_size_value(self):
     styleobj = Style()
     with self.assertRaises(TypeError):
         styleobj.size = 'a'
     with self.assertRaises(TypeError):
         styleobj.size = False
コード例 #2
0
 def test_set_size(self):
     styleobj = Style()
     styleobj.size = 11
     self.assertEqual(styleobj.size, 11)