Beispiel #1
0
 def testToggleCoolerHeater(self):
     ac = AirConditionar(35)
     ac.set_heater()
     self.assert_(not ac.is_cooler())
     ac.set_cooler()
     self.assert_(ac.is_cooler())
Beispiel #2
0
 def testSetCooler(self):
     ac = AirConditionar(35)
     ac.set_cooler()
     self.assert_(ac.is_cooler())
Beispiel #3
0
 def testSetHeater(self):
     ac = AirConditionar(35)
     ac.set_heater()
     self.assert_(not ac.is_cooler())
Beispiel #4
0
 def testIsCooler(self):
     ac = AirConditionar(15)
     self.assert_(ac.is_cooler())