'When an endpoint is decorated with ``@private_api`` it is
omitted from result of ``makeRst``.'

def test_private_not_visible(self):

    app = Klein()
    @private_api
    def g():
        pass
    app.route('/g', methods=['GET'])(g)
    rest = list(makeRst('/', 'section', app, None, {}))
    self.assertEqual(rest, [])
