Exemplo n.º 1
0
 def testHeaterWith21(self):
     ac = AirConditionar(21)
     ac.set_heater()
     self.assert_(not ac.is_light_lamp())
Exemplo n.º 2
0
 def testHeaterWith15(self):
     ac = AirConditionar(15)
     ac.set_heater()
     self.assert_(ac.is_light_lamp())
Exemplo n.º 3
0
 def testSetHeater(self):
     ac = AirConditionar(35)
     ac.set_heater()
     self.assert_(not ac.is_cooler())
Exemplo n.º 4
0
 def testToggleCoolerHeater(self):
     ac = AirConditionar(35)
     ac.set_heater()
     self.assert_(not ac.is_cooler())
     ac.set_cooler()
     self.assert_(ac.is_cooler())
Exemplo n.º 5
0
 def testSetCooler(self):
     ac = AirConditionar(35)
     ac.set_cooler()
     self.assert_(ac.is_cooler())
Exemplo n.º 6
0
 def testCoolerWith35(self):
     ac = AirConditionar(35)
     self.assert_(ac.is_light_lamp())
Exemplo n.º 7
0
 def testCoolerWith27(self):
     ac = AirConditionar(27)
     self.assert_(not ac.is_light_lamp())
Exemplo n.º 8
0
 def testIsCooler(self):
     ac = AirConditionar(15)
     self.assert_(ac.is_cooler())
Exemplo n.º 9
0
 def testSetThermo(self):
     ac = AirConditionar(15)
     ac.set_thermo(28)
     self.assertEqual(28, ac.thermo)