def test_integers(self):
    '\n        All of the info constants are integers.\n\n        This is a very weak test.  It would be nice to have one that actually\n        verifies that as certain info events happen, the value passed to the\n        info callback matches up with the constant exposed by OpenSSL.SSL.\n        '
    for const in [SSL_ST_CONNECT, SSL_ST_ACCEPT, SSL_ST_MASK, SSL_CB_LOOP, SSL_CB_EXIT, SSL_CB_READ, SSL_CB_WRITE, SSL_CB_ALERT, SSL_CB_READ_ALERT, SSL_CB_WRITE_ALERT, SSL_CB_ACCEPT_LOOP, SSL_CB_ACCEPT_EXIT, SSL_CB_CONNECT_LOOP, SSL_CB_CONNECT_EXIT, SSL_CB_HANDSHAKE_START, SSL_CB_HANDSHAKE_DONE]:
        assert isinstance(const, int)
    for const in [SSL_ST_INIT, SSL_ST_BEFORE, SSL_ST_OK, SSL_ST_RENEGOTIATE]:
        assert ((const is None) or isinstance(const, int))
All of the info constants are integers.

This is a very weak test.  It would be nice to have one that actually
verifies that as certain info events happen, the value passed to the
info callback matches up with the constant exposed by OpenSSL.SSL.
def test_integers(self):
    '\n        All of the info constants are integers.\n\n        This is a very weak test.  It would be nice to have one that actually\n        verifies that as certain info events happen, the value passed to the\n        info callback matches up with the constant exposed by OpenSSL.SSL.\n        '
    for const in [SSL_ST_CONNECT, SSL_ST_ACCEPT, SSL_ST_MASK, SSL_CB_LOOP, SSL_CB_EXIT, SSL_CB_READ, SSL_CB_WRITE, SSL_CB_ALERT, SSL_CB_READ_ALERT, SSL_CB_WRITE_ALERT, SSL_CB_ACCEPT_LOOP, SSL_CB_ACCEPT_EXIT, SSL_CB_CONNECT_LOOP, SSL_CB_CONNECT_EXIT, SSL_CB_HANDSHAKE_START, SSL_CB_HANDSHAKE_DONE]:
        assert isinstance(const, int)
    for const in [SSL_ST_INIT, SSL_ST_BEFORE, SSL_ST_OK, SSL_ST_RENEGOTIATE]:
        assert ((const is None) or isinstance(const, int))