<s> from braubuddy . envcontroller import IEnvController <EOL> from braubuddy . envcontroller import PercentageError <EOL> class DummyEnvController ( IEnvController ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> self . _heater_percent = <NUM_LIT:0> <EOL> self . _cooler_percent = <NUM_LIT:0> <EOL> def set_heater_level ( self , percent ) : <EOL> if percent not in range ( <NUM_LIT:0> , <NUM_LIT> ) : <EOL> msg = '<STR_LIT>' . format ( percent ) <EOL> raise PercentageError ( msg ) <EOL> self . _heater_percent = percent <EOL> def set_cooler_level ( self , percent ) : <EOL> if percent not in range ( <NUM_LIT:0> , <NUM_LIT> ) : <EOL> msg = '<STR_LIT>' . format ( percent ) <EOL> raise PercentageError ( msg ) <EOL> self . _cooler_percent = percent <EOL> def get_power_levels ( self ) : <EOL> return ( self . _heater_percent , self . _cooler_percent ) </s>
