summaryrefslogtreecommitdiff
path: root/tests/test_urlparser.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-12-13 08:20:25 +0000
committerianb <devnull@localhost>2005-12-13 08:20:25 +0000
commite6d3daa93b95a5597575eb466b3a580ff26bb810 (patch)
tree05787b6102f93677179ac7ba3e8651b1fe56b063 /tests/test_urlparser.py
parentac8b22aed75bc39964804e790aecea870862d23e (diff)
downloadpaste-e6d3daa93b95a5597575eb466b3a580ff26bb810.tar.gz
Deprecate the wsgilib.error_response functions; stop using them internally as well, in preference of httpexceptions.*.wsgi_application
Diffstat (limited to 'tests/test_urlparser.py')
-rw-r--r--tests/test_urlparser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_urlparser.py b/tests/test_urlparser.py
index a6d66bb..ab6b2aa 100644
--- a/tests/test_urlparser.py
+++ b/tests/test_urlparser.py
@@ -34,7 +34,7 @@ def test_deep():
assert res.status == 301
print res
assert res.header('location') == 'http://localhost/sub/'
- assert 'href="http://localhost/sub/"' in res
+ assert 'http://localhost/sub/' in res
res = app.get('/sub/')
assert 'index3' in res
@@ -82,7 +82,7 @@ def test_static_parser():
res = testapp.get('/', status=404)
res = testapp.get('/index.txt')
assert res.body.strip() == 'index1'
- res = testapp.get('/index.txt/foo', status=500)
+ res = testapp.get('/index.txt/foo', status=400)
def test_egg_parser():
app = PkgResourcesParser('Paste', 'paste')
@@ -94,4 +94,4 @@ def test_egg_parser():
assert 'ClassInitMeta' in res
res = testapp.get('/util/classinit', status=404)
res = testapp.get('/util', status=301)
- res = testapp.get('/util/classinit.py/foo', status=500)
+ res = testapp.get('/util/classinit.py/foo', status=400)