Commits

Jason R. Coombs committed 61e8218

Need to patch socket in irc.connection now

  • Participants
  • Parent commits 911941b

Comments (0)

Files changed (1)

irc/tests/test_client.py

 	assert fd.due() == True
 	assert fd.next().due() == False
 
-@mock.patch('irc.client.socket')
+@mock.patch('irc.connection.socket')
 def test_privmsg_sends_msg(socket_mod):
 	server = irc.client.IRC().server()
 	server.connect('foo', 6667, 'bestnick')
 	socket_mod.socket.return_value.send.assert_called_with(
 		b'PRIVMSG #best-channel :You are great\r\n')
 
-@mock.patch('irc.client.socket')
+@mock.patch('irc.connection.socket')
 def test_privmsg_fails_on_embedded_carriage_returns(socket_mod):
 	server = irc.client.IRC().server()
 	server.connect('foo', 6667, 'bestnick')