Skip to content

Instantly share code, notes, and snippets.

@jrabbit
Created April 7, 2016 21:22
Show Gist options
  • Save jrabbit/a0abce671f40a5e10ad8b2f5164365ba to your computer and use it in GitHub Desktop.
Save jrabbit/a0abce671f40a5e10ad8b2f5164365ba to your computer and use it in GitHub Desktop.
import mock
import unittest
import pyborg_irc2
import pyborg
class TestConnect(unittest.TestCase):
@mock.patch('irc.connection.socket')
def test_connect(self, patched_socket):
mod = pyborg_irc2.ModIRC(pyborg.pyborg.pyborg())
mod.start()
print patched_socket.call_args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment