'Test the mold indicator sensor setup.'

def test_setup(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}}))
    moldind = self.hass.states.get('sensor.mold_indicator')
    assert moldind
    assert ('%' == moldind.attributes.get('unit_of_measurement'))
