'test that the cache callable can be called safely after the
originating template has completed rendering.'

def test_load_from_expired(self):

    t = Template('\n                                ${foo()}\n                                <%def    name="foo()"    cached="True"    cache_timeout="2">\n                                                foo\n                                </%def>\n                                ')
    x1 = t.render()
    time.sleep(3)
    x2 = t.render()
    assert (x1.strip() == x2.strip() == 'foo')
