diff options
Diffstat (limited to 'test/test_wsgi.py')
-rwxr-xr-x | test/test_wsgi.py | 6 |
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): |