def test_values_good(self): sensor = PressureTemperatureSensor(RT_IMU_SETTINGS) # Some warmups for x in range(10): time.sleep(0.01) reading = sensor.read() print("temperature: ", reading.temperature) print("pressure: ", reading.pressure) print("height above zero: ", reading.height_above_sea) print("height above zero expected error: ", reading.height_above_sea_error) self.assertIsNotNone(reading) self.assertIsNotNone(reading.pressure) self.assertGreater(reading.pressure, 0) self.assertGreater(reading.temperature, 0) self.assertGreater(reading.height_above_sea, 0) self.assertGreater(reading.height_above_sea_error, 0)