'Test setup method of history.'

def test_setup(self):

    mock_http_component(self.hass)
    config = history.CONFIG_SCHEMA({history.DOMAIN: {history.CONF_INCLUDE: {history.CONF_DOMAINS: ['media_player'], history.CONF_ENTITIES: ['thermostat.test']}, history.CONF_EXCLUDE: {history.CONF_DOMAINS: ['thermostat'], history.CONF_ENTITIES: ['media_player.test']}}})
    self.init_recorder()
    self.assertTrue(setup_component(self.hass, history.DOMAIN, config))
