#NEWLINE# def test_oldFlattenable( self ) : #NEWLINE# #INDENT# '\n        Flattening L{Element} instances with the old flatten function results in\n        the flattened version of whatever their C{render} method returns.\n        ' #NEWLINE# result = [ ] #NEWLINE# element = Element ( ) #NEWLINE# element . docFactory = stan ( [ '"&<>' ] ) #NEWLINE# request = FakeRequest ( ) #NEWLINE# context = WovenContext ( ) #NEWLINE# context . remember ( request ) #NEWLINE# finished = oldFlatten ( element , context , result . append , ( lambda ign : ign ) ) #NEWLINE# finished . addCallback ( ( lambda ign : '' . join ( result ) ) ) #NEWLINE# finished . addCallback ( self . assertEqual , '"&amp;&lt;&gt;' ) #NEWLINE# return finished