'Test memory input caching'

def test_memory_cache(self, execute_task, tmpdir):

    task = execute_task(u'test_memory')
    assert task.entries, u'should    have    created    entries    at    the    start'
    tmpdir.join(u'cached.xml').remove()
    tmpdir.join(u'cached.xml').write(u'')
    task = execute_task(u'test_memory')
    assert task.entries, u'should    have    created    entries    from    the    cache'
    cached.cache.cache_time = timedelta(minutes=0)
    task = execute_task(u'test_memory')
    assert (not task.entries), u'cache    should    have    been    expired'
