Created
April 7, 2016 21:22
-
-
Save jrabbit/a0abce671f40a5e10ad8b2f5164365ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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