From ea3503f895b52f559aabca088c4abc018ee201a4 Mon Sep 17 00:00:00 2001 From: Mark McClain Date: Tue, 22 Feb 2011 11:46:53 -0500 Subject: [PATCH] additional canonical url test --- tests/test_base.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_base.py b/tests/test_base.py index 8c39ef3..4136314 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -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')