additional canonical url test

This commit is contained in:
Mark McClain
2011-02-22 11:46:53 -05:00
parent fc8fc29397
commit ea3503f895

View File

@@ -681,12 +681,16 @@ class TestEngines(object):
r = app.get('/index')
assert r.status_int == 200
assert 'index' in r.body
# for broken clients
r = app.get('', status=302)
assert r.status_int == 302
r = app.get('/sub/')
assert r.status_int == 200
assert 'subindex' in r.body
r = app.get('/sub', expect_errors=True)
r = app.get('/sub', status=302)
assert r.status_int == 302
r = app.get('/arg/index/foo')