diff options
| author | Brian Waldon <brian.waldon@rackspace.com> | 2011-07-08 17:21:58 -0400 |
|---|---|---|
| committer | Brian Waldon <brian.waldon@rackspace.com> | 2011-07-08 17:21:58 -0400 |
| commit | fe8da67779dbb03654b1cce90eeafdb323507673 (patch) | |
| tree | 518e7f4c5e48c6271a2800411edb03c88e1eca03 /nova/tests | |
| parent | 32a3cf25721173014fbd20c8f2954f015316f439 (diff) | |
easing up content-type restrictions
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/api/openstack/test_wsgi.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/tests/api/openstack/test_wsgi.py b/nova/tests/api/openstack/test_wsgi.py index 938637207..7ab39ed5a 100644 --- a/nova/tests/api/openstack/test_wsgi.py +++ b/nova/tests/api/openstack/test_wsgi.py @@ -18,8 +18,7 @@ class RequestTest(test.TestCase): request = wsgi.Request.blank('/tests/123', method='POST') request.headers["Content-Type"] = "text/html" request.body = "asdf<br />" - self.assertRaises(exception.InvalidContentType, - request.get_content_type) + self.assertEqual(request.get_content_type(), None) def test_content_type_with_charset(self): request = wsgi.Request.blank('/tests/123') |
