It'd be good to have a docstring and more comments to explain what exactly this is testing (that for a request less than 500 seconds old, the underlying function should be called as normal), and which parts of the test are just setup versus which ones actually test the code.