def setUp(self): super(ConnectionTestCase, self).setUp() self.conn = gear.Connection(self.host, self.port)
def setUp(self): super(TestConnection, self).setUp() self.patch(socket, 'socket', tests.FakeSocket) self.conn = gear.Connection('127.0.0.1', 4730) self.conn.connect() self.socket = self.conn.conn