Skip to content
Myr

Added a test for non-ascii routing

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 1b40b3b · Browse files · 1 file+12 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−0 removed

  • other:+12 added−0 removed

1 file+12 added−0 removed

modified:flask/testsuite/basic.py+12 added
961 unmodified lines
962 url = flask.url_for('foo.bar.baz.view')963 expected = '/login'964 self.assert_equal(url, expected)965966 def test_nonascii_pathinfo(self):967 app = flask.Flask(__name__)968 app.testing = True969970 @app.route(u'/киртест')971 def index():972 return 'Hello World!'973974 c = app.test_client()975 rv = c.get(u'/киртест')976 self.assert_equal(rv.data, b'Hello World!')977978 def test_debug_mode_complains_after_first_request(self):979 app = flask.Flask(__name__)980 app.debug = True981 @app.route('/')
219 unmodified lines