Compare commits
1 Commits
40eb32bd0d
...
6e27ecfe8c
Author | SHA1 | Date |
---|---|---|
Sebastian Lohff | 6e27ecfe8c |
|
@ -274,3 +274,13 @@ def test_https(run_servefile, datadir):
|
||||||
# assert fingerprint
|
# assert fingerprint
|
||||||
urllib3.disable_warnings()
|
urllib3.disable_warnings()
|
||||||
check_download(data, protocol='https', verify=False)
|
check_download(data, protocol='https', verify=False)
|
||||||
|
|
||||||
|
def test_https_big_download(run_servefile, datadir):
|
||||||
|
# test with about 10 mb of data
|
||||||
|
data = "x" * (10 * 1024 ** 2)
|
||||||
|
p = datadir({'testfile': data}) / 'testfile'
|
||||||
|
run_servefile(['--ssl', str(p)])
|
||||||
|
time.sleep(0.2) # time for generating ssl certificates
|
||||||
|
|
||||||
|
urllib3.disable_warnings()
|
||||||
|
check_download(data, protocol='https', verify=False)
|
||||||
|
|
Loading…
Reference in New Issue