'Test the sensor_changed function.'

def test_sensor_changed(self):

    self.assertTrue(setup_component(self.hass, sensor.DOMAIN, {'sensor': {'platform': 'mold_indicator', 'indoor_temp_sensor': 'test.indoortemp', 'outdoor_temp_sensor': 'test.outdoortemp', 'indoor_humidity_sensor': 'test.indoorhumidity', 'calibration_factor': 2.0}}))
    self.hass.states.set('test.indoortemp', '30', {ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS})
    self.hass.block_till_done()
    assert (self.hass.states.get('sensor.mold_indicator').state == '90')
    self.hass.states.set('test.outdoortemp', '25', {ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS})
    self.hass.block_till_done()
    assert (self.hass.states.get('sensor.mold_indicator').state == '57')
    self.hass.states.set('test.indoorhumidity', '20', {ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS})
    self.hass.block_till_done()
    assert (self.hass.states.get('sensor.mold_indicator').state == '23')
