#NEWLINE# def _render( self , fragment , request = None ) : #NEWLINE# #INDENT# '\n        Test helper which tries to render the given fragment.\n        ' #NEWLINE# ctx = WovenContext ( ) #NEWLINE# if ( request is None ) : #NEWLINE# #INDENT# request = FakeRequest ( ) #NEWLINE# #UNINDENT# ctx . remember ( request , IRequest ) #NEWLINE# return Page ( docFactory = stan ( fragment ) ) . renderString ( ctx )