def test_stuff(self):
        app = Klein()

        @app.route(b"/g", methods=[b"PUT"])
        @user_documentation(
            u"""
            Does G-like stuff.

            Like g, G and gg.
            """,
            header=u'g stuff',
            section=u'section')
        def g():
            pass

        rest = list(makeRst(b"/prefix", 'section', app, None, {}))

        self.assertEqual(rest, [
            'g stuff',
            '-------',
            '',
            '',
            '.. http:put:: /prefix/g',
            '',
            '   Does G-like stuff.',
            '   ',
            '   Like g, G and gg.',
            '   ',
            '',
            ])
L{makeRst} returns a generator that returns a bunch of lines of rest.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/restapi/docs/test/test_publicapi.py/MakeRstTests.test_stuff