def METHOD_NAME(self):
    app = flask.Flask(__name__)
    app.testing = True
    @app.route('/')
    def index():
        return flask.request.url
    ctx = app.test_request_context()
    self.assert_equal(ctx.request.url, 'http://localhost/')
    with app.test_client() as c:
        rv = c.get('/')
        self.assert_equal(rv.data, b'http://localhost/')