def test_invalid_green_value_throws(self):
     s = LightSettings()
     with self.assertRaises(ValueError):
         s.green = -0.01
     with self.assertRaises(ValueError):
         s.green = 100000
 def test_can_set_green(self):
     s = LightSettings()
     s.green = 80
     self.assertEquals(s.green, 80)