'When called with a tuple with the given errno,
L{error.getConnectError} returns an exception which is an instance of
the expected class.'

def assertErrnoException(self, errno, expectedClass):

    e = (errno, 'lalala')
    result = error.getConnectError(e)
    self.assertCorrectException(errno, 'lalala', result, expectedClass)
