diff options
| author | Chris McDonough <chrism@plope.com> | 2011-07-07 20:44:51 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-07-07 20:44:51 -0400 |
| commit | 578c4a1d19af3230c12a80c5d94e2b4f2bbbc4e1 (patch) | |
| tree | 9041aad32de136bb49f1d060027224114087b61b | |
| parent | 9d943e9de325a8ba1ae173882d8722010ca6459d (diff) | |
| download | pyramid-578c4a1d19af3230c12a80c5d94e2b4f2bbbc4e1.tar.gz pyramid-578c4a1d19af3230c12a80c5d94e2b4f2bbbc4e1.tar.bz2 pyramid-578c4a1d19af3230c12a80c5d94e2b4f2bbbc4e1.zip | |
fwd compat for webob 1.1
| -rw-r--r-- | pyramid/tests/test_request.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyramid/tests/test_request.py b/pyramid/tests/test_request.py index 0c1c78721..e65d484ed 100644 --- a/pyramid/tests/test_request.py +++ b/pyramid/tests/test_request.py @@ -238,14 +238,14 @@ class TestRequest(unittest.TestCase): self.assertEqual(request.json, None) def test_json_correct_mimetype(self): - request = self._makeOne({}) + request = self._makeOne({'REQUEST_METHOD':'POST'}) request.content_type = 'application/json' request.body = '{"a":1}' self.assertEqual(request.json, {'a':1}) def test_json_alternate_charset(self): from pyramid.compat import json - request = self._makeOne({}) + request = self._makeOne({'REQUEST_METHOD':'POST'}) request.content_type = 'application/json' request.charset = 'latin-1' la = unicode('La Pe\xc3\xb1a', 'utf-8') |
