Searched refs:mock_socket (Results 1 – 3 of 3) sorted by relevance
22 from test import support, mock_socket63 smtplib.socket = mock_socket77 mock_socket.reply_with(b"220 Hola mundo")83 mock_socket.reply_with(b"220 Hola mundo")91 mock_socket.reply_with(b"220 Hola mundo")97 mock_socket.reply_with(b"220 Hola mundo")104 mock_socket.reply_with(b"220 Hola mundo")105 self.assertIsNone(mock_socket.getdefaulttimeout())106 mock_socket.setdefaulttimeout(30)107 self.assertEqual(mock_socket.getdefaulttimeout(), 30)[all …]
3 from test import support, mock_socket39 smtpd.socket = asyncore.socket = mock_socket74 smtpd.socket = asyncore.socket = mock_socket166 smtpd.socket = asyncore.socket = mock_socket187 smtpd.socket = asyncore.socket = mock_socket224 smtpd.socket = asyncore.socket = mock_socket287 smtpd.socket = asyncore.socket = mock_socket765 smtpd.socket = asyncore.socket = mock_socket777 smtpd.socket = asyncore.socket = mock_socket832 smtpd.socket = asyncore.socket = mock_socket[all …]
269 def test_get_experiment(self, mock_socket): argument332 mock_socket.return_value = ''381 mock_socket.return_value = 'test.corp.google.com'