

@mock_kernel_modules
def test_repr(self):
    sensor_id = create_w1_therm_sensor(W1ThermSensor.THERM_SENSOR_DS18B20)
    s1 = W1ThermSensor(W1ThermSensor.THERM_SENSOR_DS18B20, sensor_id)
    s2 = eval(repr(s1))
    s1.id.should.be.equal(s2.id)
    s1.type.should.be.equal(s2.type)

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