'An Element with a render method which returns a Deferred will render
correctly.'

def test_deferredRendering(self):

    class RenderfulElement(Element, ):
        @renderer
        def renderMethod(self, request, tag):
            return succeed('Hello,    world.')
    element = RenderfulElement(loader=XMLString('\n                                <p    xmlns:t="http://twistedmatrix.com/ns/twisted.web.template/0.1"\n                                        t:render="renderMethod">\n                                                Goodbye,    world.\n                                </p>\n                                '))
    return self.assertFlattensTo(element, 'Hello,    world.')
