'A rendering that has taken too long is no longer considered in progress'

@mock.patch('kuma.wiki.kumascript.get')
@override_config(KUMA_DOCUMENT_RENDER_TIMEOUT=5.0)
def test_render_timeout(self, mock_kumascript_get):

    mock_kumascript_get.return_value = (self.rendered_content, None)
    self.d1.render_started_at = (datetime.now() - timedelta(seconds=(5.0 + 1)))
    self.d1.save()
    try:
        self.d1.render('', 'http://testserver/')
    except DocumentRenderingInProgress:
        self.fail('A    timed-out    rendering    should    not    be    considered    as    still    in    progress')
