summaryrefslogtreecommitdiff
path: root/test/test_wsgi.py
diff options
context:
space:
mode:
authorMarcel Hellkamp <marc@gsites.de>2012-10-27 23:04:37 +0200
committerMarcel Hellkamp <marc@gsites.de>2012-10-28 00:11:15 +0200
commit9cd6fe3a27dca7dfe0dff0aed1499b7739f962ba (patch)
tree0dcd62c601f31afa3dcfece78222e1806268f9f6 /test/test_wsgi.py
parent08117068cc22b540241c2ca330382d77e4910223 (diff)
parent26ac343788ac4dd2bbdcf8d6734411a495571b17 (diff)
downloadbottle-context.tar.gz
Merge branch 'master' into context-mergecontext
Conflicts: bottle.py test/test_environ.py test/test_sendfile.py
Diffstat (limited to 'test/test_wsgi.py')
-rwxr-xr-xtest/test_wsgi.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_wsgi.py b/test/test_wsgi.py
index 318e0ca..8c451b8 100755
--- a/test/test_wsgi.py
+++ b/test/test_wsgi.py
@@ -92,12 +92,12 @@ class TestWsgi(ServerTestBase):
""" WSGI: abort(401, '') (HTTP 401) """
@bottle.route('/')
def test(): bottle.abort(401)
- self.assertStatus(401,'/')
+ self.assertStatus(401, '/')
@bottle.error(401)
def err(e):
bottle.response.status = 200
return str(type(e))
- self.assertStatus(200,'/')
+ self.assertStatus(200, '/')
self.assertBody("<class 'bottle.HTTPError'>",'/')
def test_303(self):
@@ -281,7 +281,7 @@ class TestDecorators(ServerTestBase):
def test():
return bottle.HTTPError(401, 'The cake is a lie!')
self.assertInBody('The cake is a lie!', '/tpl')
- self.assertInBody('401: Unauthorized', '/tpl')
+ self.assertInBody('401 Unauthorized', '/tpl')
self.assertStatus(401, '/tpl')
def test_truncate_body(self):