wsgi/test/unittest_wsgi.py
changeset 9939 46a8ed48636f
child 9940 292f786009ba
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wsgi/test/unittest_wsgi.py	Thu Jul 24 20:53:21 2014 +0200
@@ -0,0 +1,14 @@
+import webtest.app
+
+from cubicweb.devtools.webtest import CubicWebTestTC
+
+from cubicweb.wsgi.request import CubicWebWsgiRequest
+
+
+class WSGIAppTC(CubicWebTestTC):
+    def test_content_type(self):
+        r = webtest.app.TestRequest.blank('/', {'CONTENT_TYPE': 'text/plain'})
+
+        req = CubicWebWsgiRequest(r.environ, self.vreg)
+
+        self.assertEqual('text/plain', req.get_header('Content-Type'))