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

def test_elementUsingSlots(self):

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