'Test for ticket #19890. The content of ifchanged template tag was
rendered twice.'

def test_ifchanged_render_once(self):

    template = Template(u'{%    load    cycle    from    future    %}{%    ifchanged    %}{%    cycle    "1st    time"    "2nd    time"    %}{%    endifchanged    %}')
    output = template.render(Context({}))
    self.assertEqual(output, u'1st    time')
