'Documentation is only generated for routes from the corresponding
section.'

def test_sections(self):

    app = Klein()
    @app.route('/', methods=['GET'])
    @user_documentation(u'Undocumented.', header=u'Header', section=u'other-section')
    def dummy_f():
        '\n                                                Developer    docs.\n                                                '
    @app.route('/', methods=['GET'])
    @user_documentation(u'Documented.', header=u'Header', section=u'section')
    def dummy_g():
        '\n                                                Developer    docs.\n                                                '
    rest = list(makeRst('/prefix', 'section', app, None, {}))
    self.assertEqual(rest, ['Header', '------', '', '', '..    http:get::    /prefix/', '', '            Documented.', '            ', ''])
