'Test iterating all states.'

def test_iterating_all_states(self):

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