def test_sensor_does_not_exist_after_init(self):
        sensor_id = create_w1_therm_sensor(W1ThermSensor.THERM_SENSOR_DS18B20)
        sensor = W1ThermSensor(W1ThermSensor.THERM_SENSOR_DS18B20, sensor_id)

        # remove sensor path
        remove(sensor.sensorpath)

        try:
            sensor.raw_sensor_value
        except NoSensorFoundError as e:
            if str(e) != "No DS18B20 temperature sensor with id '%s' found" % sensor_id:
                raise RuntimeError("No NoSensorFoundError raised")
dataset/ETHPy150Open timofurrer/w1thermsensor/test/test_core.py/W1ThermSensorTest.test_sensor_does_not_exist_after_init/original