diff options
author | Gary Kotton <gkotton@redhat.com> | 2012-06-17 04:05:37 -0400 |
---|---|---|
committer | Gary Kotton <gkotton@redhat.com> | 2012-06-18 01:15:09 -0400 |
commit | 9f938720f158889252fa1db44be96745fa48e1ff (patch) | |
tree | 5383ca2084fc6e188c59bef6224c78b2719a5ed9 /tests/unit/test_wsgi.py | |
parent | 925edb3ee8bbd97afaa43b2888ab45d2bca50faf (diff) | |
download | oslo-9f938720f158889252fa1db44be96745fa48e1ff.tar.gz oslo-9f938720f158889252fa1db44be96745fa48e1ff.tar.xz oslo-9f938720f158889252fa1db44be96745fa48e1ff.zip |
Update common code to support pep 1.3.
bug 1014216
Change-Id: I3f8fa2e11c9d3f3d34fb20f65ce886bb9c94463d
Diffstat (limited to 'tests/unit/test_wsgi.py')
-rw-r--r-- | tests/unit/test_wsgi.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/unit/test_wsgi.py b/tests/unit/test_wsgi.py index 16c5345..94f12b7 100644 --- a/tests/unit/test_wsgi.py +++ b/tests/unit/test_wsgi.py @@ -412,8 +412,9 @@ class ResourceTest(unittest.TestCase): def test_malformed_request_body_throws_bad_request(self): resource = wsgi.Resource(None) - request = wsgi.Request.blank("/", body="{mal:formed", method='POST', - headers={'Content-Type': "application/json"}) + request = wsgi.Request.blank( + "/", body="{mal:formed", method='POST', + headers={'Content-Type': "application/json"}) response = resource(request) self.assertEqual(response.status, '400 Bad Request') @@ -421,7 +422,7 @@ class ResourceTest(unittest.TestCase): def test_wrong_content_type_throws_unsupported_media_type_error(self): resource = wsgi.Resource(None) request = wsgi.Request.blank("/", body="{some:json}", method='POST', - headers={'Content-Type': "xxx"}) + headers={'Content-Type': "xxx"}) response = resource(request) self.assertEqual(response.status, '415 Unsupported Media Type') |