diff options
Diffstat (limited to 'tests/other/test_curlRequest.py')
-rw-r--r-- | tests/other/test_curlRequest.py | 28 |
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 |