def test_get_significant_states_include_exclude_domain(hass_history):
    'Test if significant states when excluding and including domains.\n\n    We should not get back any changes since we include only the\n    media_player domain but also exclude it.\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']
    del states['thermostat.test']
    del states['thermostat.test2']
    del states['script.can_cancel_this_one']
    config = history.CONFIG_SCHEMA({ha.DOMAIN: {}, history.DOMAIN: {history.CONF_INCLUDE: {history.CONF_DOMAINS: ['media_player']}, history.CONF_EXCLUDE: {history.CONF_DOMAINS: ['media_player']}}})
    check_significant_states(hass, zero, four, states, config)
Test if significant states when excluding and including domains.

We should not get back any changes since we include only the
media_player domain but also exclude it.
def test_get_significant_states_include_exclude_domain(hass_history):
    'Test if significant states when excluding and including domains.\n\n    We should not get back any changes since we include only the\n    media_player domain but also exclude it.\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']
    del states['thermostat.test']
    del states['thermostat.test2']
    del states['script.can_cancel_this_one']
    config = history.CONFIG_SCHEMA({ha.DOMAIN: {}, history.DOMAIN: {history.CONF_INCLUDE: {history.CONF_DOMAINS: ['media_player']}, history.CONF_EXCLUDE: {history.CONF_DOMAINS: ['media_player']}}})
    check_significant_states(hass, zero, four, states, config)