'Test that flattening respects all of the IRenderable interface.'

def test_serializeIRenderable(self):

    @implementer(IRenderable)
    class FakeElement(object, ):
        def render(ign, ored):
            return tags.p('hello,    ', tags.transparent(render='test'), '    -    ', tags.transparent(render='test'))
        def lookupRenderMethod(ign, name):
            self.assertEqual(name, 'test')
            return (lambda ign, node: node('world'))
    return gatherResults([self.assertFlattensTo(FakeElement(), '<p>hello,    world    -    world</p>')])
