'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(self):

    (zero, four, states) = self.record_states()
    del states['media_player.test']
    del states['media_player.test2']
    config = history.CONFIG_SCHEMA({ha.DOMAIN: {}, history.DOMAIN: {history.CONF_EXCLUDE: {history.CONF_DOMAINS: ['media_player']}}})
    self.check_significant_states(zero, four, states, config)
