MCPcopy Index your code
hub / github.com/python/cpython / test_socket

Method test_socket

Lib/test/test_stat.py:223–228  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

221
222 @socket_helper.skip_unless_bind_unix_socket
223 def test_socket(self):
224 with socket.socket(socket.AF_UNIX) as s:
225 s.bind(TESTFN)
226 st_mode, modestr = self.get_mode()
227 self.assertEqual(modestr[0], 's')
228 self.assertS_IS("SOCK", st_mode)
229
230 def test_module_attributes(self):
231 for key, value in self.stat_struct.items():

Callers

nothing calls this directly

Calls 5

get_modeMethod · 0.95
assertS_ISMethod · 0.95
socketMethod · 0.80
bindMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected