Home
last modified time | relevance | path

Searched refs:FakeSocket (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_httplib.py25 class FakeSocket: class
51 class EPipeSocket(FakeSocket):
55 FakeSocket.__init__(self, text)
105 conn.sock = FakeSocket('blahblahblah')
133 conn.sock = FakeSocket(None)
149 conn.sock = FakeSocket(None)
162 conn.sock = FakeSocket(None)
173 conn.sock = FakeSocket(None)
183 conn.sock = FakeSocket(None)
221 sock = FakeSocket('')
[all …]
Dtest_urllib.py26 class FakeSocket(io.BytesIO): class
50 self.sock = FakeSocket(self.fakedata)
Dtest_xmlrpc.py1022 class FakeSocket: class
1053 conn.sock = self.fake_socket = FakeSocket()
/external/python/cpython3/Lib/test/
Dtest_httplib.py45 class FakeSocket: class
78 class EPipeSocket(FakeSocket):
82 FakeSocket.__init__(self, text)
126 return FakeSocket(*self.fake_socket_args)
148 conn.sock = FakeSocket('blahblahblah')
176 conn.sock = FakeSocket(None)
192 conn.sock = FakeSocket(None)
205 conn.sock = FakeSocket(None)
216 conn.sock = FakeSocket(None)
226 conn.sock = FakeSocket(None)
[all …]
Dtest_urllib.py60 class FakeSocket(io.BytesIO): class
91 self.sock = FakeSocket(self.fakedata)
/external/autotest/client/cros/netprotos/
Dfake_host.py26 sock = FakeSocket(self, family, sock_type)
31 class FakeSocket(object): class
/external/scapy/test/
Dpipetool.uts295 class FakeSocket(object):
304 @mock.patch("scapy.scapypipes.conf.L2socket", FakeSocket)
305 @mock.patch("scapy.scapypipes.conf.L3socket", FakeSocket)
/external/python/cpython2/Lib/
Dhttplib.py1294 def FakeSocket (sock, sslobj): function
/external/python/httplib2/python2/httplib2/
D__init__.py118 return httplib.FakeSocket(sock, ssl_sock)