'Check if significant states are retrieved.'

def check_significant_states(self, zero, four, states, config):

    filters = history.Filters()
    exclude = config[history.DOMAIN].get(history.CONF_EXCLUDE)
    if exclude:
        filters.excluded_entities = exclude[history.CONF_ENTITIES]
        filters.excluded_domains = exclude[history.CONF_DOMAINS]
    include = config[history.DOMAIN].get(history.CONF_INCLUDE)
    if include:
        filters.included_entities = include[history.CONF_ENTITIES]
        filters.included_domains = include[history.CONF_DOMAINS]
    hist = history.get_significant_states(self.hass, zero, four, filters=filters)
    assert (states == hist)
