#NEWLINE# def test_elementContainingStaticElement( self ) : #NEWLINE# #INDENT# '\n        Test that a Element which is returned by the render method of another\n        Element is rendered properly.\n        ' #NEWLINE# class RenderfulElement ( Element ) : #NEWLINE# #INDENT# def renderMethod( self , request , tag ) : #NEWLINE# #INDENT# return tag [ Element ( docFactory = stan ( 'Hello, world.' ) ) ] #NEWLINE# #UNINDENT# renderer ( renderMethod ) #NEWLINE# #UNINDENT# f = RenderfulElement ( docFactory = stan ( p ( render = directive ( 'renderMethod' ) ) ) ) #NEWLINE# return self . _render ( f ) . addCallback ( self . assertEquals , '<p>Hello, world.</p>' )