@mock_kernel_modules
    def test_str(self):
        sensor_id = create_w1_therm_sensor(W1ThermSensor.THERM_SENSOR_DS18B20)
        s1 = W1ThermSensor(W1ThermSensor.THERM_SENSOR_DS18B20, sensor_id)

        str(s1).should.be.equal("W1ThermSensor(name='DS18B20', type=40(0x28), id='%s')" % sensor_id)
dataset/ETHPy150Open timofurrer/w1thermsensor/test/test_core.py/W1ThermSensorTest.test_str/original