summaryrefslogtreecommitdiff
path: root/test/test_wsgi.py
diff options
context:
space:
mode:
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):