'Given a known-good errno, make sure that formatMessage gives results
matching either C{socket.errorTab}, C{ctypes.WinError}, or
C{win32api.FormatMessage}.'

def test_correctLookups(self):

    acceptable = [socket.errorTab[ECONNABORTED]]
    try:
        from ctypes import WinError
        acceptable.append(WinError(ECONNABORTED).strerror)
    except ImportError:
        pass
    try:
        from win32api import FormatMessage
        acceptable.append(FormatMessage(ECONNABORTED))
    except ImportError:
        pass
    self.assertIn(formatError(ECONNABORTED), acceptable)
