List of all members.
Definition at line 944 of file test_socket.py.
Constructor & Destructor Documentation
Member Function Documentation
Definition at line 949 of file test_socket.py.
00950 def _check_defaults(self, sock):
00951 self.assertIsInstance(sock, socket.socket)
00952 if hasattr(socket, 'AF_UNIX'):
00953 self.assertEqual(sock.family, socket.AF_UNIX)
00955 self.assertEqual(sock.family, socket.AF_INET)
00956 self.assertEqual(sock.type, socket.SOCK_STREAM)
00957 self.assertEqual(sock.proto, 0)
Definition at line 974 of file test_socket.py.
00975 def _testSend(self):
00976 msg = self.cli.recv(1024)
00977 self.assertEqual(msg, MSG)
@unittest.skipUnless(thread, 'Threading required for this test.')
Definition at line 157 of file test_socket.py.
00158 def clientRun(self, test_func):
00162 if not hasattr(test_func, '__call__'):
00163 raise TypeError("test_func must be a callable function")
00166 except BaseException as e:
This method allows the server to explicitly indicate that
it wants the client thread to proceed. This is useful if the
server is about to execute a blocking routine that is
dependent upon the client thread during its setup routine.
Definition at line 123 of file test_socket.py.
00124 def serverExplicitReady(self):
00125 """This method allows the server to explicitly indicate that
00126 it wants the client thread to proceed. This is useful if the
00127 server is about to execute a blocking routine that is
00128 dependent upon the client thread during its setup routine."""
Member Data Documentation
The documentation for this class was generated from the following file: