

@mock_kernel_modules
def test_get_available_sensors(self):
    create_w1_therm_sensor(W1ThermSensor.THERM_SENSOR_DS18B20)
    sensors = W1ThermSensor.get_available_sensors()
    sensors.should.have.length_of(1)
    sensors[0].type.should.be.equal(W1ThermSensor.THERM_SENSOR_DS18B20)
    create_w1_therm_sensor(W1ThermSensor.THERM_SENSOR_DS1822)
    create_w1_therm_sensor(W1ThermSensor.THERM_SENSOR_DS18S20)
    sensors = W1ThermSensor.get_available_sensors()
    sensors.should.have.length_of(3)
    W1ThermSensor.THERM_SENSOR_DS1822.should.be.within((s.type for s in s))
    W1ThermSensor.THERM_SENSOR_DS18S20.should.be.within((s.type for s in sensors))
    W1ThermSensor.THERM_SENSOR_DS18B20.should.be.within((s.type for s in sensors))

dataset/ETHPy150Open timofurrer/w1thermsensor/test/test_core.py W1ThermSensorTest.test_get_available_sensors/VarMisuse@107/199 `sensors`->`s`