def testHeaterWith15(self): ac = AirConditionar(15) ac.set_heater() self.assert_(ac.is_light_lamp())
def testToggleCoolerHeater(self): ac = AirConditionar(35) ac.set_heater() self.assert_(not ac.is_cooler()) ac.set_cooler() self.assert_(ac.is_cooler())
def testHeaterWith21(self): ac = AirConditionar(21) ac.set_heater() self.assert_(not ac.is_light_lamp())
def testSetHeater(self): ac = AirConditionar(35) ac.set_heater() self.assert_(not ac.is_cooler())