'The given result of L{error.getConnectError} has the given attributes
(C{osError} and C{args}), and is an instance of the given class.'

def assertCorrectException(self, errno, message, result, expectedClass):

    self.assertEqual(result.__class__, expectedClass)
    self.assertEqual(result.osError, errno)
    self.assertEqual(result.args, (message,))
