Lines Matching refs:mock_socket
21 from test import support, mock_socket
59 smtplib.socket = mock_socket
73 mock_socket.reply_with(b"220 Hola mundo")
79 mock_socket.reply_with(b"220 Hola mundo")
87 mock_socket.reply_with(b"220 Hola mundo")
93 mock_socket.reply_with(b"220 Hola mundo")
100 mock_socket.reply_with(b"220 Hola mundo")
101 self.assertIsNone(mock_socket.getdefaulttimeout())
102 mock_socket.setdefaulttimeout(30)
103 self.assertEqual(mock_socket.getdefaulttimeout(), 30)
107 mock_socket.setdefaulttimeout(None)
112 mock_socket.reply_with(b"220 Hola mundo")
123 mock_socket.reply_with(b"220 Hola mundo")
129 mock_socket.reply_with(b"220 Hello world")
139 mock_socket.reply_with(b"220 Hello world")
197 socket.getfqdn = mock_socket.getfqdn
613 smtplib.socket = mock_socket
614 mock_socket.reply_with(b"199 no hello for you!")
881 socket.getfqdn = mock_socket.getfqdn
1166 socket.getfqdn = mock_socket.getfqdn
1287 socket.getfqdn = mock_socket.getfqdn