Home
last modified time | relevance | path

Searched refs:fakehttp (Results 1 – 25 of 36) sorted by relevance

12

/dports/devel/gh/cli-2.4.0/pkg/cmd/auth/shared/
H A Doauth_scopes_test.go52 fakehttp := &httpmock.Registry{}
53 defer fakehttp.Verify(t)
56 fakehttp.Register(httpmock.REST("GET", ""), func(req *http.Request) (*http.Response, error) {
68 client := http.Client{Transport: fakehttp}
/dports/lang/python-legacy/Python-2.7.18/Lib/test/
H A Dtest_urllib.py25 def fakehttp(fakedata): function
58 def fakehttp(self, fakedata): member in FakeHTTPMixin
240 self.fakehttp('Hello!')
253 self.fakehttp('Hello!')
300 self.fakehttp("""HTTP/1.1 302 Found
318 self.fakehttp(b'''HTTP/1.1 302 Found
331 self.fakehttp('')
359 self.fakehttp('Hello!')
375 self.fakehttp('Hello!')
530 self.fakehttp('''HTTP/1.1 200 OK
[all …]
H A Dtest_urllib2.py1048 httplib.HTTPConnection = test_urllib.fakehttp(response1)
1328 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
1349 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
1374 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
/dports/lang/python27/Python-2.7.18/Lib/test/
H A Dtest_urllib.py25 def fakehttp(fakedata): function
58 def fakehttp(self, fakedata): member in FakeHTTPMixin
240 self.fakehttp('Hello!')
253 self.fakehttp('Hello!')
300 self.fakehttp("""HTTP/1.1 302 Found
318 self.fakehttp(b'''HTTP/1.1 302 Found
331 self.fakehttp('')
359 self.fakehttp('Hello!')
375 self.fakehttp('Hello!')
530 self.fakehttp('''HTTP/1.1 200 OK
[all …]
H A Dtest_urllib2.py1048 httplib.HTTPConnection = test_urllib.fakehttp(response1)
1328 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
1349 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
1374 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
/dports/devel/py-gevent/gevent-21.8.0/src/greentest/2.7/
H A Dtest_urllib.py25 def fakehttp(fakedata): function
58 def fakehttp(self, fakedata): member in FakeHTTPMixin
240 self.fakehttp('Hello!')
253 self.fakehttp('Hello!')
300 self.fakehttp("""HTTP/1.1 302 Found
318 self.fakehttp(b'''HTTP/1.1 302 Found
331 self.fakehttp('')
359 self.fakehttp('Hello!')
375 self.fakehttp('Hello!')
530 self.fakehttp('''HTTP/1.1 200 OK
[all …]
H A Dtest_urllib2.py1048 httplib.HTTPConnection = test_urllib.fakehttp(response1)
1328 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
1349 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
1374 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
/dports/devel/py-gevent/gevent-21.8.0/src/greentest/2.7pypy/
H A Dtest_urllib.py25 def fakehttp(fakedata): function
58 def fakehttp(self, fakedata): member in FakeHTTPMixin
239 self.fakehttp('Hello!')
252 self.fakehttp('Hello!')
274 self.fakehttp("""HTTP/1.1 302 Found
292 self.fakehttp(b'''HTTP/1.1 302 Found
305 self.fakehttp('')
333 self.fakehttp('Hello!')
349 self.fakehttp('Hello!')
504 self.fakehttp('''HTTP/1.1 200 OK
[all …]
/dports/lang/python37/Python-3.7.12/Lib/test/
H A Dtest_urllib.py60 def fakehttp(fakedata): function
100 def fakehttp(self, fakedata): member in FakeHTTPMixin
102 http.client.HTTPConnection = fakehttp(fakedata)
340 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
348 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
384 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
466 self.fakehttp(b'''HTTP/1.1 302 Found
484 self.fakehttp(b'''HTTP/1.1 302 Found
497 self.fakehttp(b'')
808 self.fakehttp(b'''HTTP/1.1 200 OK
[all …]
/dports/databases/py-sqlite3/Python-3.8.12/Lib/test/
H A Dtest_urllib.py59 def fakehttp(fakedata, mock_close=False): function
107 def fakehttp(self, fakedata, mock_close=False): member in FakeHTTPMixin
348 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
356 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
392 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
435 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
474 self.fakehttp(b'''HTTP/1.1 302 Found
492 self.fakehttp(b'''HTTP/1.1 302 Found
505 self.fakehttp(b'')
816 self.fakehttp(b'''HTTP/1.1 200 OK
[all …]
H A Dtest_urllib2.py1295 http.client.HTTPConnection = test_urllib.fakehttp(response1)
1315 self.connection = test_urllib.fakehttp(
1332 handler.connection = test_urllib.fakehttp(
1716 conn = test_urllib.fakehttp(header.encode() + data)
1727 conn = test_urllib.fakehttp(b"")
/dports/databases/py-gdbm/Python-3.8.12/Lib/test/
H A Dtest_urllib.py59 def fakehttp(fakedata, mock_close=False): function
107 def fakehttp(self, fakedata, mock_close=False): member in FakeHTTPMixin
348 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
356 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
392 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
435 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
474 self.fakehttp(b'''HTTP/1.1 302 Found
492 self.fakehttp(b'''HTTP/1.1 302 Found
505 self.fakehttp(b'')
816 self.fakehttp(b'''HTTP/1.1 200 OK
[all …]
H A Dtest_urllib2.py1295 http.client.HTTPConnection = test_urllib.fakehttp(response1)
1315 self.connection = test_urllib.fakehttp(
1332 handler.connection = test_urllib.fakehttp(
1716 conn = test_urllib.fakehttp(header.encode() + data)
1727 conn = test_urllib.fakehttp(b"")
/dports/lang/python310/Python-3.10.1/Lib/test/
H A Dtest_urllib.py61 def fakehttp(fakedata, mock_close=False): function
109 def fakehttp(self, fakedata, mock_close=False): member in FakeHTTPMixin
360 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
368 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
404 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
447 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
486 self.fakehttp(b'''HTTP/1.1 302 Found
504 self.fakehttp(b'''HTTP/1.1 302 Found
517 self.fakehttp(b'')
836 self.fakehttp(b'''HTTP/1.1 200 OK
[all …]
/dports/lang/python-tools/Python-3.8.12/Lib/test/
H A Dtest_urllib.py59 def fakehttp(fakedata, mock_close=False): function
107 def fakehttp(self, fakedata, mock_close=False): member in FakeHTTPMixin
348 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
356 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
392 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
435 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
474 self.fakehttp(b'''HTTP/1.1 302 Found
492 self.fakehttp(b'''HTTP/1.1 302 Found
505 self.fakehttp(b'')
816 self.fakehttp(b'''HTTP/1.1 200 OK
[all …]
/dports/lang/python38/Python-3.8.12/Lib/test/
H A Dtest_urllib.py59 def fakehttp(fakedata, mock_close=False): function
107 def fakehttp(self, fakedata, mock_close=False): member in FakeHTTPMixin
348 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
356 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
392 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
435 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
474 self.fakehttp(b'''HTTP/1.1 302 Found
492 self.fakehttp(b'''HTTP/1.1 302 Found
505 self.fakehttp(b'')
816 self.fakehttp(b'''HTTP/1.1 200 OK
[all …]
/dports/lang/python311/Python-3.11.0a3/Lib/test/
H A Dtest_urllib.py61 def fakehttp(fakedata, mock_close=False): function
109 def fakehttp(self, fakedata, mock_close=False): member in FakeHTTPMixin
360 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
368 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
404 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
447 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
486 self.fakehttp(b'''HTTP/1.1 302 Found
504 self.fakehttp(b'''HTTP/1.1 302 Found
517 self.fakehttp(b'')
836 self.fakehttp(b'''HTTP/1.1 200 OK
[all …]
/dports/lang/python39/Python-3.9.9/Lib/test/
H A Dtest_urllib.py59 def fakehttp(fakedata, mock_close=False): function
107 def fakehttp(self, fakedata, mock_close=False): member in FakeHTTPMixin
358 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
366 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
402 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
445 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
484 self.fakehttp(b'''HTTP/1.1 302 Found
502 self.fakehttp(b'''HTTP/1.1 302 Found
515 self.fakehttp(b'')
834 self.fakehttp(b'''HTTP/1.1 200 OK
[all …]
/dports/x11-toolkits/py-tkinter/Python-3.8.12/Lib/test/
H A Dtest_urllib.py59 def fakehttp(fakedata, mock_close=False): function
107 def fakehttp(self, fakedata, mock_close=False): member in FakeHTTPMixin
348 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
356 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
392 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
435 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
474 self.fakehttp(b'''HTTP/1.1 302 Found
492 self.fakehttp(b'''HTTP/1.1 302 Found
505 self.fakehttp(b'')
816 self.fakehttp(b'''HTTP/1.1 200 OK
[all …]
/dports/devel/gh/cli-2.4.0/api/
H A Dclient_test.go112 fakehttp := &httpmock.Registry{}
113 client := NewClient(ReplaceTripper(fakehttp))
115 fakehttp.Register(httpmock.MatchAny, func(req *http.Request) (*http.Response, error) {
/dports/devel/py-gevent/gevent-21.8.0/src/greentest/3.6pypy/
H A Dtest_urllib.py60 def fakehttp(fakedata): function
100 def fakehttp(self, fakedata): member in FakeHTTPMixin
102 http.client.HTTPConnection = fakehttp(fakedata)
318 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
326 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
362 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.")
412 self.fakehttp(b'''HTTP/1.1 302 Found
430 self.fakehttp(b'''HTTP/1.1 302 Found
443 self.fakehttp(b'')
754 self.fakehttp(b'''HTTP/1.1 200 OK
[all …]
H A Dtest_urllib2.py1297 http.client.HTTPConnection = test_urllib.fakehttp(response1)
1317 self.connection = test_urllib.fakehttp(
1334 handler.connection = test_urllib.fakehttp(
1681 conn = test_urllib.fakehttp(header.encode() + data)
1692 conn = test_urllib.fakehttp(b"")
/dports/devel/py-future/future-0.18.2/tests/test_future/
H A Dtest_urllib.py53 def fakehttp(self, fakedata): member in FakeHTTPMixin
204 self.fakehttp(b"HTTP/" + ver + b" 200 OK\r\n\r\nHello!")
217 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
225 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
248 self.fakehttp(b'''HTTP/1.1 401 Authentication Required
261 self.fakehttp(b'''HTTP/1.1 302 Found
277 self.fakehttp(b'')
318 self.fakehttp(b"HTTP/1.0 200 OK\r\n\r\nHello!")
330 self.fakehttp(b"HTTP/1.0 200 OK\r\n\r\nHello!")
497 self.fakehttp(b'''HTTP/1.1 200 OK
[all …]
H A Dtest_urllib_toplevel.py64 def fakehttp(self, fakedata): member in FakeHTTPMixin
215 self.fakehttp(b"HTTP/" + ver + b" 200 OK\r\n\r\nHello!")
229 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
238 self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!")
262 self.fakehttp(b'''HTTP/1.1 401 Authentication Required
276 self.fakehttp(b'''HTTP/1.1 302 Found
292 self.fakehttp(b'')
333 self.fakehttp(b"HTTP/1.0 200 OK\r\n\r\nHello!")
345 self.fakehttp(b"HTTP/1.0 200 OK\r\n\r\nHello!")
512 self.fakehttp(b'''HTTP/1.1 200 OK
[all …]
/dports/sysutils/uefi-edk2-bhyve-csm/uefi-edk2-aa8d718/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
H A Dtest_urllib.py122 def fakehttp(self, fakedata): member in urlopen_HttpTests
142 self.fakehttp('Hello!')
155 self.fakehttp('Hello!')
164 self.fakehttp('''HTTP/1.1 401 Authentication Required
177 self.fakehttp("""HTTP/1.1 302 Found
192 self.fakehttp('')

12