Home
last modified time | relevance | path

Searched refs:urlopen (Results 1 – 25 of 2224) sorted by relevance

12345678910>>...89

/dports/devel/py-vcrpy/vcrpy-2.0.1/tests/integration/
H A Dtest_record_mode.py3 from six.moves.urllib.request import urlopen
10 urlopen(httpbin.url).read()
14 urlopen(httpbin.url).read()
27 urlopen(httpbin.url).read()
28 urlopen(httpbin.url).read()
32 urlopen(httpbin.url).read()
33 urlopen(httpbin.url).read()
40 urlopen(httpbin.url).read()
41 urlopen(httpbin.url).read()
42 urlopen(httpbin.url).read()
[all …]
H A Dtest_basic.py6 from six.moves.urllib.request import urlopen
19 urlopen(httpbin.url).read()
28 urlopen(httpbin.url).read()
32 urlopen(httpbin.url).read()
42 response = urlopen(httpbin.url).read()
52 response = urlopen(httpbin.url).read()
56 response2 = urlopen(httpbin.url).read()
61 response3 = urlopen(httpbin.url).read()
77 response = urlopen(httpbin.url).read()
81 response2 = urlopen(httpbin.url).read()
[all …]
H A Dtest_ignore.py1 from six.moves.urllib.request import urlopen
29 urlopen('http://localhost:{}/'.format(httpbin.port))
31 urlopen('http://httpbin.org:{}/'.format(httpbin.port))
42 urlopen('http://httpbin.org:{}/'.format(httpbin.port))
44 urlopen('http://localhost:{}/'.format(httpbin.port))
56 urlopen('http://httpbin.org:{}'.format(httpbin.port))
57 urlopen('http://localhost:{}'.format(httpbin.port))
65 urlopen('http://localhost:{}'.format(httpbin.port))
67 urlopen('http://httpbin.org:{}'.format(httpbin.port))
71 urlopen('http://localhost:{}'.format(httpbin.port))
[all …]
H A Dtest_filter.py17 return urlopen(request)
51 urlopen(url)
53 urlopen(url)
62 urlopen(url, data)
74 urlopen(request)
90 urlopen(url)
95 urlopen(url)
104 urlopen(request)
116 urlopen(request)
128 urlopen(url)
[all …]
H A Dtest_matchers.py3 from six.moves.urllib.request import urlopen
23 urlopen(default_uri)
52 urlopen(default_uri)
57 urlopen(matching_uri)
63 urlopen(not_matching_uri)
71 urlopen('https://google.com/get?a=b')
78 urlopen(default_uri, data=b'')
91 urlopen(uri)
105 urlopen(uri)
113 urlopen(default_uri, data=b'')
H A Dtest_register_matcher.py2 from six.moves.urllib.request import urlopen
19 urlopen(httpbin.url)
20 urlopen(httpbin.url + '/get')
24 urlopen(httpbin.url + '/get')
25 urlopen(httpbin.url + '/get')
34 urlopen(httpbin.url)
35 urlopen(httpbin.url + '/get')
H A Dtest_multiple.py3 from six.moves.urllib.request import urlopen
10 urlopen(httpbin.url + '/status/200')
11 urlopen(httpbin.url + '/status/201')
17 assert urlopen(httpbin.url + '/status/200').getcode() == 200
18 assert urlopen(httpbin.url + '/status/201').getcode() == 201
20 urlopen(httpbin.url + '/status/200')
H A Dtest_disksaver.py7 from six.moves.urllib.request import urlopen
20 urlopen(httpbin.url).read()
25 urlopen(httpbin.url).read()
40 urlopen(httpbin.url).read()
49 urlopen(httpbin.url).read()
50 urlopen(httpbin.url + '/get').read()
/dports/www/py-httpretty/httpretty-1.1.4/tests/functional/
H A Dtest_urllib2.py31 from urllib.request import urlopen
35 urlopen = urllib2.urlopen variable
51 fd = urlopen('http://yipit.com')
85 request = urlopen('http://github.com')
114 request = urlopen('http://github.com')
141 request = urlopen('http://github.com')
164 request = urlopen('http://github.com')
227 fd = urlopen(request)
256 fd = urlopen(request)
317 fd = urllib2.urlopen(request)
[all …]
H A Dtest_decorator.py18 fd = urllib2.urlopen('http://localhost/')
37 fd = urllib2.urlopen('http://localhost/')
61 fd = urllib2.urlopen('http://localhost/')
72 fd = urllib2.urlopen('http://localhost/')
92 fd = urllib2.urlopen('http://localhost/')
98 fd = urllib2.urlopen('http://localhost/')
106 fd = urllib2.urlopen('http://localhost/')
112 fd = urllib2.urlopen('http://localhost/')
/dports/devel/py-circuits/circuits-3.2/tests/web/
H A Dtest_dispatcher2.py6 from .helpers import urlopen
55 f = urlopen(url)
62 f = urlopen(url)
68 f = urlopen(webapp.server.http.base)
75 f = urlopen(url)
80 f = urlopen(url)
87 f = urlopen(url)
92 f = urlopen(url)
99 f = urlopen(url)
104 f = urlopen(url)
H A Dtest_core.py10 from .helpers import urlencode, urlopen, HTTPError
38 f = urlopen(webapp.server.http.base)
45 urlopen("%s/foo" % webapp.server.http.base)
58 f = urlopen(url, data)
76 f = urlopen(url, data)
81 f = urlopen("%s/test_redirect" % webapp.server.http.base)
88 urlopen("%s/test_forbidden" % webapp.server.http.base)
98 urlopen("%s/test_notfound" % webapp.server.http.base)
108 urlopen("%s/test_failure" % webapp.server.http.base)
H A Dtest_exceptions.py7 from .helpers import urlopen, HTTPError
38 f = urlopen("%s/test_redirect" % webapp.server.http.base)
45 urlopen("%s/test_forbidden" % webapp.server.http.base)
55 urlopen("%s/test_notfound" % webapp.server.http.base)
65 urlopen("%s/test_contenttype" % webapp.server.http.base)
76 urlopen("%s/test_contenttype_json" % webapp.server.http.base)
90 f = urlopen("%s/test_contenttype_json_no_debug" %
H A Dtest_wsgi_application.py6 from .helpers import urlencode, urlopen, HTTPError
31 f = urlopen(webapp.server.http.base)
38 urlopen("%s/foo" % webapp.server.http.base)
52 f = urlopen(url, data)
59 f = urlopen("%s/test_redirect" % webapp.server.http.base)
66 urlopen("%s/test_forbidden" % webapp.server.http.base)
76 urlopen("%s/test_notfound" % webapp.server.http.base)
H A Dtest_static.py15 from .helpers import quote, urlopen, HTTPError
25 f = urlopen(webapp.server.http.base)
32 urlopen("%s/foo" % webapp.server.http.base)
42 f = urlopen(url)
49 f = urlopen(url)
56 urlopen("%s/static/foo.txt" % webapp.server.http.base)
65 f = urlopen("%s/static/" % webapp.server.http.base)
73 f = urlopen(url)
H A Dtest_servers.py16 from .helpers import urlopen, URLError
56 f = urlopen(server.http.base)
59 f = urlopen("http://127.0.0.1:9000")
78 f = urlopen(server.http.base)
81 f = urlopen("http://127.0.0.1:9000")
106 f = urlopen(server.http.base, context=SSL_CONTEXT)
109 f = urlopen("http://127.0.0.1:9000")
158 f = urlopen(insecure_server.http.base)
162 f = urlopen(secure_server.http.base, context=SSL_CONTEXT)
H A Dtest_expose.py3 from .helpers import urlopen
21 f = urlopen(webapp.server.http.base)
25 f = urlopen("%s/+test" % webapp.server.http.base)
29 f = urlopen("%s/foo+bar" % webapp.server.http.base)
33 f = urlopen("%s/foo_bar" % webapp.server.http.base)
/dports/devel/py-wsgi-intercept/wsgi_intercept-1.9.2/wsgi_intercept/tests/
H A Dtest_urllib.py18 url_lib.urlopen('http://some_hopefully_nonexistant_domain:80/')
24 url_lib.urlopen('http://some_hopefully_nonexistant_domain/')
30 url_lib.urlopen('http://some_hopefully_nonexistant_domain:8080/')
41 url_lib.urlopen('http://some_hopefully_nonexistant_domain:80/')
51 url_lib.urlopen('https://some_hopefully_nonexistant_domain:443/')
57 url_lib.urlopen('https://some_hopefully_nonexistant_domain/')
66 url_lib.urlopen('http://some_hopefully_nonexistant_domain/')
72 response = url_lib.urlopen('http://google.com/')
79 response = url_lib.urlopen('https://google.com/')
/dports/biology/py-ete3/ete3-3.1.2/ete3/
H A D_ph.py46 from urllib2 import urlopen, URLError
49 from urllib.request import urlopen, URLError
67 f = urlopen('http://etetoolkit.org/static/et_phone_home.php?VERSION=%s&ID=%s'
74 f = urlopen('http://pypi.python.org/pypi/ete3/')
106 f = urlopen('http://etetoolkit.org/static/et_phone_home.php?VERSION=%s&ID=%s&MSG=%s'
117 f = urlopen('http://etetoolkit.org/releases/ete3/%s.latest'
137 f = urlopen(address)
/dports/www/py-spyne/spyne-2.13.16/spyne/test/interop/
H A Dtest_httprpc.py29 from spyne.util import thread, urlencode, urlopen, Request, HTTPError
56 data = urlopen(url).read()
70 data = urlopen(url).read()
77 data = urlopen(url).read()
83 data = urlopen(url).read()
89 data = urlopen(url).read()
101 data = urlopen(url).read()
113 data = urlopen(url).read()
/dports/sysutils/uefi-edk2-bhyve-csm/uefi-edk2-aa8d718/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
H A Dtest_urllibnet.py39 f = _open_with_retry(urllib.urlopen, "http://www.python.org/")
57 def urlopen(self, *args): member in urlopenNetworkTests
58 return _open_with_retry(urllib.urlopen, *args)
62 open_url = self.urlopen("http://www.python.org/")
74 open_url = self.urlopen("http://www.python.org/")
85 open_url = self.urlopen("http://www.python.org/")
98 open_url = self.urlopen(URL)
122 open_url = self.urlopen("http://www.python.org/")
142 urllib.urlopen, "http://sadflkjsasf.i.nvali.d/")
/dports/net-mgmt/py-pdagent/pdagent-1.7.2/unit_tests/
H A Dtest_heartbeat.py111 hb._urllib2.urlopen = Mock(side_effect=Exception())
123 http.urlopen("https://localhost/error")
127 hb._urllib2.urlopen = mock_error
134 hb._urllib2.urlopen = mock_error
141 hb._urllib2.urlopen = mock_error
148 hb._urllib2.urlopen = mock_error
155 hb._urllib2.urlopen = mock_error
162 hb._urllib2.urlopen = mock_error
169 hb._urllib2.urlopen = mock_error
180 hb._urllib2.urlopen = mock_error
/dports/lang/python-legacy/Python-2.7.18/Lib/test/
H A Dtest_urllibnet.py47 f = _open_with_retry(urllib.urlopen, test_support.TEST_HTTP_URL)
65 def urlopen(self, *args): member in urlopenNetworkTests
66 return _open_with_retry(urllib.urlopen, *args)
70 open_url = self.urlopen(test_support.TEST_HTTP_URL)
82 open_url = self.urlopen(test_support.TEST_HTTP_URL)
93 open_url = self.urlopen(test_support.TEST_HTTP_URL)
105 open_url = self.urlopen(test_support.TEST_HTTP_URL)
126 open_url = self.urlopen(test_support.TEST_HTTP_URL)
155 urllib.urlopen, "http://sadflkjsasf.i.nvali.d/")
213 response = urllib.urlopen("https://self-signed.pythontest.net", context=context)
[all …]
/dports/lang/python27/Python-2.7.18/Lib/test/
H A Dtest_urllibnet.py47 f = _open_with_retry(urllib.urlopen, test_support.TEST_HTTP_URL)
65 def urlopen(self, *args): member in urlopenNetworkTests
66 return _open_with_retry(urllib.urlopen, *args)
70 open_url = self.urlopen(test_support.TEST_HTTP_URL)
82 open_url = self.urlopen(test_support.TEST_HTTP_URL)
93 open_url = self.urlopen(test_support.TEST_HTTP_URL)
105 open_url = self.urlopen(test_support.TEST_HTTP_URL)
126 open_url = self.urlopen(test_support.TEST_HTTP_URL)
155 urllib.urlopen, "http://sadflkjsasf.i.nvali.d/")
213 response = urllib.urlopen("https://self-signed.pythontest.net", context=context)
[all …]
/dports/cad/sumo/sumo-1.2.0/tools/build/
H A DmirrorWiki.py36 from urllib import urlopen
38 from urllib.request import urlopen
46 … f = urlopen("https://sumo.dlr.de/w/api.php?action=query&list=allpages&aplimit=500&format=json")
53 f = urlopen("https://sumo.dlr.de/wiki/%s" % page)
68 f = urlopen(
121 f = urlopen("https://sumo.dlr.de/wiki/%s" % i)
126 f = urlopen("https://sumo.dlr.de/%s" % c[b:e])
129 f = urlopen("https://sumo.dlr.de/%s" % i)

12345678910>>...89