def test_elementContainingStaticElement(self):
        class RenderfulElement(Element):
            def renderMethod(self, request, tag):
                return tag[Element(docFactory=stan("Hello, world."))]
            renderer(renderMethod)
        f = RenderfulElement(
            docFactory=stan(p(render=directive('renderMethod'))))
        return self._render(f).addCallback(
            self.assertEquals, "<p>Hello, world.</p>")
Test that a Element which is returned by the render method of another
dataset/ETHPy150Open twisted/nevow/nevow/test/test_element.py/FlattenIntegrationTests.test_elementContainingStaticElement