summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorBrian Waldon <brian.waldon@rackspace.com>2011-07-08 17:40:56 -0400
committerBrian Waldon <brian.waldon@rackspace.com>2011-07-08 17:40:56 -0400
commitb5ca0d793826ac10ee41be84f18d64b09113aa80 (patch)
tree4eef130b2d023048fe31a850f0cdd6609c93e9b3 /nova/tests
parentfe8da67779dbb03654b1cce90eeafdb323507673 (diff)
refactor
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/api/openstack/test_wsgi.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/tests/api/openstack/test_wsgi.py b/nova/tests/api/openstack/test_wsgi.py
index 7ab39ed5a..938637207 100644
--- a/nova/tests/api/openstack/test_wsgi.py
+++ b/nova/tests/api/openstack/test_wsgi.py
@@ -18,7 +18,8 @@ class RequestTest(test.TestCase):
request = wsgi.Request.blank('/tests/123', method='POST')
request.headers["Content-Type"] = "text/html"
request.body = "asdf<br />"
- self.assertEqual(request.get_content_type(), None)
+ self.assertRaises(exception.InvalidContentType,
+ request.get_content_type)
def test_content_type_with_charset(self):
request = wsgi.Request.blank('/tests/123')