

@mock_kernel_modules
def test_sensor_not_ready_error(self):
    sensor_id = create_w1_therm_sensor(W1ThermSensor.THERM_SENSOR_DS1822, w1_file=W1_FILE_NOT_READY)
    sensor = W1ThermSensor(W1ThermSensor.THERM_SENSOR_DS1822, sensor_id)
    self.get_temperature.when.called_with(W1ThermSensor.DEGREES_C).should.throw(SensorNotReadyError, 'Sensor is not yet ready to read temperature')

dataset/ETHPy150Open timofurrer/w1thermsensor/test/test_core.py W1ThermSensorTest.test_sensor_not_ready_error/VarMisuse@37/84 `sensor`->`self`