summaryrefslogtreecommitdiff
path: root/tests/test_request.py
diff options
context:
space:
mode:
authorSergey Schetinin <sergey@maluke.com>2011-09-22 15:03:15 +0300
committerSergey Schetinin <sergey@maluke.com>2011-09-22 15:03:15 +0300
commitd83766b93f31bd9ac815d74886ac38d1f5ed83ba (patch)
treea5702f4fd6406fb73ba529799802b5eab495992d /tests/test_request.py
parent237c9174a90f6b3d11bf0f84c2146d13a145802d (diff)
downloadwebob-d83766b93f31bd9ac815d74886ac38d1f5ed83ba.tar.gz
improve req.charset handling
* allow creating request with non-utf-8 charset in content-type * actually detect charset for req.charset * when setting allow noop assigns * check charset in POST * allow GET to work with any charset * add _content_type_raw attr
Diffstat (limited to 'tests/test_request.py')
-rw-r--r--tests/test_request.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/test_request.py b/tests/test_request.py
index e8c44a4..4dc4288 100644
--- a/tests/test_request.py
+++ b/tests/test_request.py
@@ -1945,11 +1945,6 @@ class RequestTests_functional(unittest.TestCase):
self.assertEqual(r.content_type, 'text/html')
r.content_type = None
- def test_charset_in_content_type(self):
- self.assertRaises(DeprecationWarning, Request, {'CONTENT_TYPE':'text/html;charset=ascii'})
- req = Request.blank('/')
- self.assertRaises(DeprecationWarning, setattr, req, 'charset', 'shift-jis')
-
def test_body_file_seekable(self):
r = Request.blank('/', method='POST')
r.body_file = BytesIO('body')