def testTemperatureLookups(self): """Test that all known temperature codes work""" cqi = CyberQInterface("127.0.0.1") temperatureCodes = ["CELSIUS", "FAHRENHEIT"] for code in range (0, len(temperatureCodes)-1): self.assertEqual(cqi.temperatureLookup(code), temperatureCodes[code])
def testTemperatureLookups(self): """Test that all known temperature codes work""" cqi = CyberQInterface("127.0.0.1") temperatureCodes = ["CELSIUS", "FAHRENHEIT"] for code in range(0, len(temperatureCodes) - 1): self.assertEqual(cqi.temperatureLookup(code), temperatureCodes[code])