summaryrefslogtreecommitdiffstats
path: root/tests/other/test_curlRequest.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-19 19:36:05 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-19 19:36:17 +0200
commit873f91be7d3316e93672731e2f3d2da02b41fca6 (patch)
tree5a12d1a5ac1f0a4aa5fca9ab9e6b86e64f25e388 /tests/other/test_curlRequest.py
parentExplain how to add tips for translators (diff)
downloadpyload-873f91be7d3316e93672731e2f3d2da02b41fca6.tar.xz
new plugin type and refactored request classes
Diffstat (limited to 'tests/other/test_curlRequest.py')
-rw-r--r--tests/other/test_curlRequest.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/other/test_curlRequest.py b/tests/other/test_curlRequest.py
new file mode 100644
index 000000000..0982d896d
--- /dev/null
+++ b/tests/other/test_curlRequest.py
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+
+from tests.helper.Stubs import Core
+from pyload.plugins.network.CurlRequest import CurlRequest
+
+
+class TestCurlRequest:
+
+ def setUp(self):
+ self.req = CurlRequest({})
+
+ def tearDown(self):
+ self.req.close()
+
+ def test_load(self):
+ self.req.load("http://pyload.org")
+
+ def test_cookies(self):
+
+ self.req.load("http://pyload.org", cookies=False)
+ assert len(self.req.cj.values()) == 0
+
+ self.req.load("http://pyload.org")
+ assert len(self.req.cj.values()) > 0
+
+ def test_auth(self):
+
+ pass \ No newline at end of file