'An Element with a render method which omits the containing tag
successfully removes that tag from the output.'

def test_directiveRenderingOmittingTag(self):

    class RenderfulElement(Element, ):
        @renderer
        def renderMethod(self, request, tag):
            return '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.')
