diff options
| author | Brian Waldon <brian.waldon@rackspace.com> | 2011-07-08 17:40:56 -0400 |
|---|---|---|
| committer | Brian Waldon <brian.waldon@rackspace.com> | 2011-07-08 17:40:56 -0400 |
| commit | b5ca0d793826ac10ee41be84f18d64b09113aa80 (patch) | |
| tree | 4eef130b2d023048fe31a850f0cdd6609c93e9b3 /nova/tests | |
| parent | fe8da67779dbb03654b1cce90eeafdb323507673 (diff) | |
refactor
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/api/openstack/test_wsgi.py | 3 |
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') |
