def test_get_significant_states_exclude_domain(hass_history):
    'Test if significant states are returned when excluding domains.\n\n    We should get back every thermostat change that includes an attribute\n    change, but no media player changes.\n    '
    hass = hass_history
    (zero, four, states) = record_states(hass)
    del states['media_player.test']
    del states['media_player.test2']
    del states['media_player.test3']
    config = history.CONFIG_SCHEMA({ha.DOMAIN: {}, history.DOMAIN: {history.CONF_EXCLUDE: {history.CONF_DOMAINS: ['media_player']}}})
    check_significant_states(hass, zero, four, states, config)
Test if significant states are returned when excluding domains.

We should get back every thermostat change that includes an attribute
change, but no media player changes.
def test_get_significant_states_exclude_domain(hass_history):
    'Test if significant states are returned when excluding domains.\n\n    We should get back every thermostat change that includes an attribute\n    change, but no media player changes.\n    '
    hass = hass_history
    (zero, four, states) = record_states(hass)
    del states['media_player.test']
    del states['media_player.test2']
    del states['media_player.test3']
    config = history.CONFIG_SCHEMA({ha.DOMAIN: {}, history.DOMAIN: {history.CONF_EXCLUDE: {history.CONF_DOMAINS: ['media_player']}}})
    check_significant_states(hass, zero, four, states, config)