aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/content.py
diff options
context:
space:
mode:
authorTom Christie2011-03-13 17:15:50 +0000
committerTom Christie2011-03-13 17:15:50 +0000
commit80e98de9337b7fd735729dbad09d3d629466719c (patch)
treeaecd75826b00d9d69fc4893b8b8df84f580e4243 /djangorestframework/tests/content.py
parent0f0fd13d1358863c2fd92bb75d32d411e84730eb (diff)
parentee74aec27cdc8ca9934f93c828ffbdc7da3c426c (diff)
downloaddjango-rest-framework-80e98de9337b7fd735729dbad09d3d629466719c.tar.bz2
sebpiq's parser improvements
Diffstat (limited to 'djangorestframework/tests/content.py')
-rw-r--r--djangorestframework/tests/content.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/djangorestframework/tests/content.py b/djangorestframework/tests/content.py
index 9052f677..ee7af486 100644
--- a/djangorestframework/tests/content.py
+++ b/djangorestframework/tests/content.py
@@ -111,6 +111,7 @@ class TestContentMixins(TestCase):
OverloadedContentMixin.CONTENTTYPE_PARAM: content_type}
request = self.req.post('/', form_data)
self.assertEqual(OverloadedContentMixin().determine_content(request), (content_type, content))
+ self.assertEqual(request.META['CONTENT_TYPE'], content_type)
def test_overloaded_behaviour_allows_content_tunnelling_content_type_not_set(self):
"""Ensure determine_content(request) returns (None, content) for overloaded POST request with content type not set"""