def test_cooling_active_mode_off(self) -> None: cooling = ZoneCooling() cooling.operating_mode = OperatingModes.OFF cooling.time_program = _time_program() active_mode = cooling.active_mode self.assertEqual(OperatingModes.OFF, active_mode.current) self.assertIsNone(active_mode.sub)
def test_cooling_active_mode_auto_off(self) -> None: cooling = ZoneCooling() cooling.operating_mode = OperatingModes.AUTO cooling.time_program = _time_program(mode=SettingModes.OFF) active_mode = cooling.active_mode self.assertEqual(OperatingModes.AUTO, active_mode.current) self.assertEqual(SettingModes.OFF, active_mode.sub)