Alcoholified placeholders

This commit is contained in:
Armin Ronacher 2010-06-11 01:37:35 +02:00
parent 52f38bbf8b
commit 20c2e53893
2 changed files with 6 additions and 6 deletions

View file

@ -233,8 +233,8 @@ happen. With Flask 0.4 this is possible by using the
app = flask.Flask(__name__)
with app.test_client() as c:
rv = c.get('/?foo=42')
assert request.args['foo'] == '42'
rv = c.get('/?tequila=42')
assert request.args['tequila'] == '42'
If you would just be using the :meth:`~flask.Flask.test_client` without
the `with` block, the `assert` would fail with an error because `request`