def test_sections(self):
        app = Klein()

        @app.route(b"/", methods=[b"GET"])
        @user_documentation(
            u"Undocumented.", header=u"Header", section=u'other-section')
        def dummy_f():
            """
            Developer docs.
            """

        @app.route(b"/", methods=[b"GET"])
        @user_documentation(
            u"Documented.", header=u"Header", section=u'section')
        def dummy_g():
            """
            Developer docs.
            """

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

        self.assertEqual(rest, [
            'Header',
            '------',
            '',
            '',
            '.. http:get:: /prefix/',
            '',
            '   Documented.',
            '   ',
            '',
            ])
Insert an item into a virtual filesystem node.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/restapi/docs/test/test_publicapi.py/MakeRstTests.test_sections--crossover with--dataset/ETHPy150Open beetbox/beets/beets/vfs.py/_insert