Skip to content

Commit

Permalink
Added a test for non-ascii routing
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jun 2, 2013
1 parent 1b40b3b commit 56d3b74
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions flask/testsuite/basic.py
Expand Up @@ -963,6 +963,18 @@ def view(page): pass
expected = '/login'
self.assert_equal(url, expected)

def test_nonascii_pathinfo(self):
app = flask.Flask(__name__)
app.testing = True

@app.route(u'/киртест')
def index():
return 'Hello World!'

c = app.test_client()
rv = c.get(u'/киртест')
self.assert_equal(rv.data, b'Hello World!')

def test_debug_mode_complains_after_first_request(self):
app = flask.Flask(__name__)
app.debug = True
Expand Down

0 comments on commit 56d3b74

Please sign in to comment.