Index: django/test/client.py
===================================================================
--- django/test/client.py	(revision 4223)
+++ django/test/client.py	(working copy)
@@ -176,6 +187,23 @@
 
         return self.request(**r)
 
+    def raw_post(self, path, data="", type="application/x-www-url-encoded",
+            **extra):
+        """
+        Request a response from the server using POST. Raw post data and a
+        content type argument are supplied and passed unmodified.
+        """
+        r = {
+            'CONTENT_LENGTH': len(data),
+            'CONTENT_TYPE':   type,
+            'PATH_INFO':      path,
+            'REQUEST_METHOD': 'POST',
+            'wsgi.input':     StringIO(data),
+        }
+        r.update(extra)
+
+        return self.request(**r)
+
     def login(self, path, username, password, **extra):
         """
         A specialized sequence of GET and POST to log into a view that
