[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [ooni-probe/master] Update nettests/core/url_list.py



commit c67d69ec432e32479daca2ed65b27529260c9ba5
Author: jonmtoz <jonmtoz@xxxxxxxxx>
Date:   Sat Nov 10 22:54:34 2012 +0200

    Update nettests/core/url_list.py
---
 nettests/core/url_list.py |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/nettests/core/url_list.py b/nettests/core/url_list.py
index 43f819e..9db912d 100644
--- a/nettests/core/url_list.py
+++ b/nettests/core/url_list.py
@@ -21,4 +21,20 @@ class URLList(httpt.HTTPTest):
 
         return self.doRequest(self.url)
 
+    def test_post(self):
+        if self.input:
+            self.url = self.input
+        else:
+            raise Exception("No input specified")
+
+        return self.doRequest(self.url, method="POST")
+    
+    def test_put(self):
+        if self.input:
+            self.url = self.input
+        else:
+            raise Exception("No input specified")
+
+        return self.doRequest(self.url, method="PUT")
+
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits