'L{DeferredResource} uses the request object\'s C{render} method to
render the resource which is the result of the L{Deferred} being
handled.'

def test_render(self):

    rendered = []
    request = DummyRequest([])
    request.render = rendered.append
    result = resource.Resource()
    deferredResource = DeferredResource(defer.succeed(result))
    deferredResource.render(request)
    self.assertEqual(rendered, [result])
