Commits

Ruslan Popov committed 393a4d5

Add 'user' parameters for 'put' and 'delete' methods.

  • Participants
  • Parent commits b3a162d

Comments (0)

Files changed (1)

File django_webtest/__init__.py

         return super(DjangoTestApp, self).post(
                    url, params, headers, extra_environ, status,
                    upload_files, expect_errors, content_type)
-    
+
+    def put(self, url, params='', headers=None, extra_environ=None,
+             status=None, upload_files=None, expect_errors=False,
+             content_type=None, user=None):
+        extra_environ = self._update_environ(extra_environ, user)
+        return super(DjangoTestApp, self).put(
+                   url, params, headers, extra_environ, status,
+                   upload_files, expect_errors, content_type)
+
+    def delete(self, url, params='', headers=None, extra_environ=None,
+             status=None, expect_errors=False,
+             content_type=None, user=None):
+        extra_environ = self._update_environ(extra_environ, user)
+        return super(DjangoTestApp, self).delete(
+                   url, params, headers, extra_environ, status,
+                   expect_errors, content_type)
+
     @property
     def session(self):
         """