'A fake hostname is substituted for I{NODE_0} in the route body.'

def test_node_substitution(self):

    example = dict(request='GET    /    HTTP/1.1\n\n%(NODE_0)s\n', response='HTTP/1.1    200    OK\n\n', doc=u'Documentation    of    some    example.')
    app = Klein()
    @app.route('/', methods=['GET'])
    @user_documentation(u'', examples=[u'dummy    id'], header=u'Header', section=u'section')
    def dummy_f():
        pass
    rst = makeRst('/prefix', 'section', app, (lambda identifier: example), {})
    self.assertEqual([u'Header', u'------', u'', u'', u'..    http:get::    /prefix/', u'', u'            **Example:**    Documentation    of    some    example.', u'            ', u'            Request', u'            ', u'            ..    sourcecode::    http', u'            ', u'                        GET    /    HTTP/1.1', u'                        Host:    api.example.com', u'                        Content-Type:    application/json', u'                        ', u'                        cf0f0346-17b2-4812-beca-1434997d6c3f', u'            ', u'            Response', u'            ', u'            ..    sourcecode::    http', u'            ', u'                        HTTP/1.1    200    OK', u'                        Content-Type:    application/json', u'                        ', u'            ', u''], list(rst))
