'An Element which is returned by the render method of another Element is
rendered properly.'

def test_elementContainingStaticElement(self):

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