def test_stanDirectiveRendering(self):
        renders = []
        class RenderfulElement(Element):
            def renderMethod(self, request, tag):
                renders.append((self, request))
                return tag["Hello, world."]
            renderer(renderMethod)
        request = object()
        element = RenderfulElement(
            docFactory=stan(p(render=directive('renderMethod'))))
        finished = self._render(element, request)
        def cbFinished(result):
            self.assertEqual(result, "<p>Hello, world.</p>")
            self.assertEqual(renders, [(element, request)])
        finished.addCallback(cbFinished)
        return finished
Initialize the resource with the passwed plugin element.
dataset/ETHPy150Open twisted/nevow/nevow/test/test_element.py/FlattenIntegrationTests.test_stanDirectiveRendering--crossover with--dataset/ETHPy150Open twisted/nevow/nevow/_widget_plugin.py/WidgetPluginRoot.__init__