':py:obj:`Connection.connect` raises :py:obj:`socket.error` if the underlying socket
connect method raises it.'

def test_connect_refused(self):

    client = socket()
    context = Context(TLSv1_METHOD)
    clientSSL = Connection(context, client)
    exc = self.assertRaises(error, clientSSL.connect, ('127.0.0.1', 1))
    self.assertEquals(exc.args[0], ECONNREFUSED)
