

@mock_kernel_modules
def test_init_specific_sensor(self):
    sensor_id = create_w1_therm_sensor(W1ThermSensor.THERM_SENSOR_DS18B20)
    sensor = W1ThermSensor(W1ThermSensor.THERM_SENSOR_DS18B20, sensor_id)
    sensor.should.be.a(W1ThermSensor)
    sensor.type.should.be.equal(W1ThermSensor.THERM_SENSOR_DS18B20)
    sensor.id.should.be.equal(sensor_id)

dataset/ETHPy150Open timofurrer/w1thermsensor/test/test_core.py W1ThermSensorTest.test_init_specific_sensor/original