summaryrefslogtreecommitdiffstats
path: root/module/network/HTTPDownload.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-19 02:23:19 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-19 02:23:19 +0200
commit0aca8ebfb15237e60effce06ccff2085516117f6 (patch)
treee3f28471f4f682f333d5f1b0725ec6572b9cb1bc /module/network/HTTPDownload.py
parentMove test stuff to common directory (diff)
downloadpyload-0aca8ebfb15237e60effce06ccff2085516117f6.tar.xz
Remove self-tests from all files
Diffstat (limited to 'module/network/HTTPDownload.py')
-rw-r--r--module/network/HTTPDownload.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/module/network/HTTPDownload.py b/module/network/HTTPDownload.py
index 9b613b684..20ac00e48 100644
--- a/module/network/HTTPDownload.py
+++ b/module/network/HTTPDownload.py
@@ -323,17 +323,3 @@ class HTTPDownload:
del self.cj
if hasattr(self, "info"):
del self.info
-
-if __name__ == "__main__":
- url = "http://speedtest.netcologne.de/test_100mb.bin"
-
- from Bucket import Bucket
-
- bucket = Bucket()
- bucket.setRate(200 * 1024)
- bucket = None
-
- print "starting"
-
- dwnld = HTTPDownload(url, "test_100mb.bin", bucket=bucket)
- dwnld.download(chunks=3, resume=True)