diff options
author | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-13 02:21:30 +0900 |
---|---|---|
committer | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-13 02:21:30 +0900 |
commit | 19519a5019dd7c70636226965f9c3b6e0e0dc09d (patch) | |
tree | 25ae93ba2969eae2cbed1c63eaed05072ab30a16 /test/base_test_code.py | |
parent | a58bcf5d22fde9921cc2c6efa65b88d6f4e67f16 (diff) | |
download | python-urlgrabber-2.2.1_release.tar.gz python-urlgrabber-2.2.1_release.tar.bz2 python-urlgrabber-2.2.1_release.zip |
Tizen 2.1 basesubmit/tizen_2.2/20130714.153619submit/tizen_2.1/20130425.060337submit/tizen_2.1/20130424.235929accepted/tizen_2.1/20130425.0212332.2_release2.2.1_release2.1b_releasetizen_2.2tizen_2.1
Diffstat (limited to 'test/base_test_code.py')
-rw-r--r-- | test/base_test_code.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/base_test_code.py b/test/base_test_code.py new file mode 100644 index 0000000..50c6348 --- /dev/null +++ b/test/base_test_code.py @@ -0,0 +1,33 @@ +from munittest import * + +base_http = 'http://www.linux.duke.edu/projects/urlgrabber/test/' +base_ftp = 'ftp://localhost/test/' + +# set to a proftp server only. we're working around a couple of +# bugs in their implementation in byterange.py. +base_proftp = 'ftp://localhost/test/' + +reference_data = ''.join( [str(i)+'\n' for i in range(20000) ] ) +ref_http = base_http + 'reference' +ref_ftp = base_ftp + 'reference' +ref_proftp = base_proftp + 'reference' +short_reference_data = ' '.join( [str(i) for i in range(10) ] ) +short_ref_http = base_http + 'short_reference' +short_ref_ftp = base_ftp + 'short_reference' + +ref_200 = ref_http +ref_404 = base_http + 'nonexistent_file' +ref_403 = base_http + 'mirror/broken/' + +base_mirror_url = base_http + 'mirror/' +good_mirrors = ['m1', 'm2', 'm3'] +mirror_files = ['test1.txt', 'test2.txt'] +bad_mirrors = ['broken'] +bad_mirror_files = ['broken.txt'] + +proxy_proto = 'http' +proxy_host = 'localhost' +proxy_port = 8888 +proxy_user = 'proxyuser' +good_proxy_pass = 'proxypass' +bad_proxy_pass = 'badproxypass' |