コード例 #1
0
 def test_sensor_data(self):
     sensor = sens.Sensor()
     self.assertGreater(
         sensor.get_temp(), 0,
         "getTemp should give temperature above 0, throw error if no sensor is plugged in or the RPI is not used to test"
     )