'Test iterating domain states.'

def test_iterating_domain_states(self):

    self.hass.states.set('test.object', 'happy')
    self.hass.states.set('sensor.back_door', 'open')
    self.hass.states.set('sensor.temperature', 10)
    self.assertEqual('open10', template.Template('\n{%    for    state    in    states.sensor    %}{{    state.state    }}{%    endfor    %}\n                                                                ', self.hass).render())
