components/python/pyopenssl/test/results-all.master
author Binjih Lin <binjih.lin@oracle.com>
Fri, 13 Jan 2017 16:13:25 -0800
changeset 7579 8b703bbe2bba
parent 5008 7a4cf1e8bc15
permissions -rw-r--r--
23185078 Upgrade PyOpenSSL to 16.2.0

. lib/OpenSSL/SSL.py::pep8
. lib/OpenSSL/SSL.py::pyflakes
. lib/OpenSSL/__init__.py::pep8
. lib/OpenSSL/__init__.py::pyflakes
. lib/OpenSSL/_util.py::pep8
. lib/OpenSSL/_util.py::pyflakes
. lib/OpenSSL/crypto.py::pep8
. lib/OpenSSL/crypto.py::pyflakes
. lib/OpenSSL/rand.py::pep8
. lib/OpenSSL/rand.py::pyflakes
. lib/OpenSSL/tsafe.py::pep8
. lib/OpenSSL/tsafe.py::pyflakes
. lib/OpenSSL/version.py::pep8
. lib/OpenSSL/version.py::pyflakes
. tests/__init__.py::pep8
. tests/__init__.py::pyflakes
. tests/conftest.py::pep8
. tests/conftest.py::pyflakes
. tests/memdbg.py::pep8
. tests/memdbg.py::pyflakes
. tests/test_crypto.py::pep8
. tests/test_crypto.py::pyflakes
. tests/test_crypto.py::X509ExtTests::test_construction
. tests/test_crypto.py::X509ExtTests::test_get_critical
. tests/test_crypto.py::X509ExtTests::test_get_data
. tests/test_crypto.py::X509ExtTests::test_get_data_wrong_args
. tests/test_crypto.py::X509ExtTests::test_get_short_name
. tests/test_crypto.py::X509ExtTests::test_invalid_extension
. tests/test_crypto.py::X509ExtTests::test_invalid_issuer
. tests/test_crypto.py::X509ExtTests::test_invalid_subject
. tests/test_crypto.py::X509ExtTests::test_issuer
. tests/test_crypto.py::X509ExtTests::test_missing_issuer
. tests/test_crypto.py::X509ExtTests::test_missing_subject
. tests/test_crypto.py::X509ExtTests::test_str
. tests/test_crypto.py::X509ExtTests::test_subject
. tests/test_crypto.py::X509ExtTests::test_type
. tests/test_crypto.py::X509ExtTests::test_unused_issuer
. tests/test_crypto.py::X509ExtTests::test_unused_subject
. tests/test_crypto.py::TestPKey::()::test_convert_from_cryptography_private_key
. tests/test_crypto.py::TestPKey::()::test_convert_from_cryptography_public_key
. tests/test_crypto.py::TestPKey::()::test_convert_from_cryptography_unsupported_type
. tests/test_crypto.py::TestPKey::()::test_convert_public_pkey_to_cryptography_key
. tests/test_crypto.py::TestPKey::()::test_convert_private_pkey_to_cryptography_key
. tests/test_crypto.py::PKeyTests::test_check_public_key
. tests/test_crypto.py::PKeyTests::test_check_wrong_args
. tests/test_crypto.py::PKeyTests::test_construction
. tests/test_crypto.py::PKeyTests::test_dsaGeneration
. tests/test_crypto.py::PKeyTests::test_failedGeneration
. tests/test_crypto.py::PKeyTests::test_inconsistentKey
. tests/test_crypto.py::PKeyTests::test_pregeneration
. tests/test_crypto.py::PKeyTests::test_regeneration
. tests/test_crypto.py::PKeyTests::test_rsaGeneration
. tests/test_crypto.py::PKeyTests::test_type
. tests/test_crypto.py::X509NameTests::test_attributes
. tests/test_crypto.py::X509NameTests::test_comparison
. tests/test_crypto.py::X509NameTests::test_copy
. tests/test_crypto.py::X509NameTests::test_der
. tests/test_crypto.py::X509NameTests::test_get_components
. tests/test_crypto.py::X509NameTests::test_hash
. tests/test_crypto.py::X509NameTests::test_load_nul_byte_attribute
. tests/test_crypto.py::X509NameTests::test_onlyStringAttributes
. tests/test_crypto.py::X509NameTests::test_repr
. tests/test_crypto.py::X509NameTests::test_setAttributeFailure
. tests/test_crypto.py::X509NameTests::test_setInvalidAttribute
. tests/test_crypto.py::X509NameTests::test_type
. tests/test_crypto.py::X509ReqTests::test_add_extensions
. tests/test_crypto.py::X509ReqTests::test_add_extensions_wrong_args
. tests/test_crypto.py::X509ReqTests::test_construction
. tests/test_crypto.py::X509ReqTests::test_get_extensions
. tests/test_crypto.py::X509ReqTests::test_get_subject
. tests/test_crypto.py::X509ReqTests::test_get_subject_wrong_args
. tests/test_crypto.py::X509ReqTests::test_sign
. tests/test_crypto.py::X509ReqTests::test_signWithPublicKey
. tests/test_crypto.py::X509ReqTests::test_signWithUngenerated
. tests/test_crypto.py::X509ReqTests::test_signWithUnknownDigest
. tests/test_crypto.py::X509ReqTests::test_type
. tests/test_crypto.py::X509ReqTests::test_verify_success
. tests/test_crypto.py::X509ReqTests::test_verify_uninitialized_key
. tests/test_crypto.py::X509ReqTests::test_verify_wrong_args
. tests/test_crypto.py::X509ReqTests::test_verify_wrong_key
. tests/test_crypto.py::X509ReqTests::test_version
. tests/test_crypto.py::X509ReqTests::test_version_wrong_args
. tests/test_crypto.py::X509Tests::test_construction
. tests/test_crypto.py::X509Tests::test_digest
. tests/test_crypto.py::X509Tests::test_extension_count
. tests/test_crypto.py::X509Tests::test_get_extension
. tests/test_crypto.py::X509Tests::test_get_issuer
. tests/test_crypto.py::X509Tests::test_get_issuer_wrong_args
. tests/test_crypto.py::X509Tests::test_get_notAfter
. tests/test_crypto.py::X509Tests::test_get_notBefore
. tests/test_crypto.py::X509Tests::test_get_pubkey_uninitialized
. tests/test_crypto.py::X509Tests::test_get_serial_number_wrong_args
. tests/test_crypto.py::X509Tests::test_get_signature_algorithm
. tests/test_crypto.py::X509Tests::test_get_subject
. tests/test_crypto.py::X509Tests::test_get_subject_wrong_args
. tests/test_crypto.py::X509Tests::test_get_undefined_signature_algorithm
. tests/test_crypto.py::X509Tests::test_get_version_wrong_args
. tests/test_crypto.py::X509Tests::test_gmtime_adj_notAfter
. tests/test_crypto.py::X509Tests::test_gmtime_adj_notAfter_wrong_args
. tests/test_crypto.py::X509Tests::test_gmtime_adj_notBefore
. tests/test_crypto.py::X509Tests::test_gmtime_adj_notBefore_wrong_args
. tests/test_crypto.py::X509Tests::test_has_expired
. tests/test_crypto.py::X509Tests::test_has_expired_wrong_args
. tests/test_crypto.py::X509Tests::test_has_not_expired
. tests/test_crypto.py::X509Tests::test_invalid_digest_algorithm
. tests/test_crypto.py::X509Tests::test_nullbyte_subjectAltName
. tests/test_crypto.py::X509Tests::test_root_has_not_expired
. tests/test_crypto.py::X509Tests::test_serial_number
. tests/test_crypto.py::X509Tests::test_set_issuer
. tests/test_crypto.py::X509Tests::test_set_issuer_wrong_args
. tests/test_crypto.py::X509Tests::test_set_notAfter
. tests/test_crypto.py::X509Tests::test_set_notBefore
. tests/test_crypto.py::X509Tests::test_set_pubkey_wrong_type
. tests/test_crypto.py::X509Tests::test_set_subject
. tests/test_crypto.py::X509Tests::test_set_subject_wrong_args
. tests/test_crypto.py::X509Tests::test_set_version_wrong_args
. tests/test_crypto.py::X509Tests::test_sign
. tests/test_crypto.py::X509Tests::test_signWithPublicKey
. tests/test_crypto.py::X509Tests::test_signWithUngenerated
. tests/test_crypto.py::X509Tests::test_signWithUnknownDigest
. tests/test_crypto.py::X509Tests::test_sign_bad_pubkey_type
. tests/test_crypto.py::X509Tests::test_subject_name_hash
. tests/test_crypto.py::X509Tests::test_subject_name_hash_wrong_args
. tests/test_crypto.py::X509Tests::test_type
. tests/test_crypto.py::X509Tests::test_version
. tests/test_crypto.py::X509StoreTests::test_add_cert
. tests/test_crypto.py::X509StoreTests::test_add_cert_rejects_duplicate
. tests/test_crypto.py::X509StoreTests::test_add_cert_wrong_args
. tests/test_crypto.py::X509StoreTests::test_type
. tests/test_crypto.py::PKCS12Tests::test_cert_only
. tests/test_crypto.py::PKCS12Tests::test_empty_construction
. tests/test_crypto.py::PKCS12Tests::test_export_without_args
. tests/test_crypto.py::PKCS12Tests::test_export_without_bytes
. tests/test_crypto.py::PKCS12Tests::test_export_without_mac
. tests/test_crypto.py::PKCS12Tests::test_friendly_name
. tests/test_crypto.py::PKCS12Tests::test_key_cert_mismatch
. tests/test_crypto.py::PKCS12Tests::test_key_only
. tests/test_crypto.py::PKCS12Tests::test_load_pkcs12
. tests/test_crypto.py::PKCS12Tests::test_load_pkcs12_empty_passphrase_load_empty
. tests/test_crypto.py::PKCS12Tests::test_load_pkcs12_empty_passphrase_load_null
. tests/test_crypto.py::PKCS12Tests::test_load_pkcs12_garbage
. tests/test_crypto.py::PKCS12Tests::test_load_pkcs12_no_passphrase
. tests/test_crypto.py::PKCS12Tests::test_load_pkcs12_null_passphrase_load_empty
. tests/test_crypto.py::PKCS12Tests::test_load_pkcs12_null_passphrase_load_null
. tests/test_crypto.py::PKCS12Tests::test_load_pkcs12_text_passphrase
. tests/test_crypto.py::PKCS12Tests::test_load_without_mac
. tests/test_crypto.py::PKCS12Tests::test_removing_ca_cert
. tests/test_crypto.py::PKCS12Tests::test_replace
. tests/test_crypto.py::PKCS12Tests::test_type
. tests/test_crypto.py::PKCS12Tests::test_type_errors
. tests/test_crypto.py::PKCS12Tests::test_various_empty_passphrases
. tests/test_crypto.py::PKCS12Tests::test_zero_len_list_for_ca
. tests/test_crypto.py::TestLoadPublicKey::()::test_loading_works
. tests/test_crypto.py::TestLoadPublicKey::()::test_invalid_type
. tests/test_crypto.py::TestLoadPublicKey::()::test_invalid_key_format
. tests/test_crypto.py::TestLoadPublicKey::()::test_tolerates_unicode_strings
F tests/test_crypto.py::FunctionTests::test_dump_certificate
 self = <tests.test_crypto.FunctionTests testMethod=test_dump_certificate>
 
     def test_dump_certificate(self):
         """
             :py:obj:`dump_certificate` writes PEM, DER, and text.
             """
         pemData = cleartextCertificatePEM + cleartextPrivateKeyPEM
         cert = load_certificate(FILETYPE_PEM, pemData)
         dumped_pem = dump_certificate(FILETYPE_PEM, cert)
         self.assertEqual(dumped_pem, cleartextCertificatePEM)
         dumped_der = dump_certificate(FILETYPE_ASN1, cert)
         good_der = _runopenssl(dumped_pem, b"x509", b"-outform", b"DER")
         self.assertEqual(dumped_der, good_der)
         cert2 = load_certificate(FILETYPE_ASN1, dumped_der)
         dumped_pem2 = dump_certificate(FILETYPE_PEM, cert2)
         self.assertEqual(dumped_pem2, cleartextCertificatePEM)
         dumped_text = dump_certificate(FILETYPE_TEXT, cert)
         good_text = _runopenssl(
             dumped_pem, b"x509", b"-noout", b"-text", b"-nameopt", b"")
 >       self.assertEqual(dumped_text, good_text)
 E       AssertionError: 'Certificate:\n    Data:\n        Version: 3 (0x2)\n        Serial Number:\n            3d:0c:c4:e0:c6:de:b9:f4\n    Signature Algorithm: sha1WithRSAEncryption\n        Issuer: C=US, ST=IL, L=Chicago, O=Testing, CN=Testing Root CA\n        Validity\n            Not Before: Mar 25 12:36:58 2009 GMT\n            Not After : Jun 11 12:36:58 2017 GMT\n        Subject: C=US, ST=IL, L=Chicago, O=Testing, CN=Testing Root CA\n        Subject Public Key Info:\n            Public Key Algorithm: rsaEncryption\n                Public-Key: (1024 bit)\n                Modulus:\n                    00:f9:9a:42:e9:8b:ba:ba:44:e7:6e:ee:48:41:dd:\n                    2f:5a:6a:70:34:66:5b:3b:be:f7:c6:3a:60:7c:d3:\n                    fc:9e:ca:58:46:a6:c8:c0:8d:67:a7:d1:5b:52:42:\n                    47:bf:36:51:0f:1a:d3:b7:f2:db:15:ec:2b:2e:16:\n                    74:a6:b1:c8:6f:02:71:ab:70:99:7b:e9:bd:14:38:\n                    e1:d4:80:34:c8:a1:1c:42:e9:00:d4:dd:c9:5a:7a:\n                    0c:2c:ac:10:3e:b0:91:01:6e:ac:79:45:d5:db:21:\n                    11:a2:70:f1:bf:f2:a4:38:66:6d:52:28:e8:28:b5:\n                    c6:f0:89:aa:2b:db:2c:59:db\n                Exponent: 65537 (0x10001)\n        X509v3 extensions:\n            X509v3 Subject Key Identifier: \n                83:55:77:2D:5E:21:F1:49:0C:09:24:E7:54:09:12:8D:C8:7E:04:AE\n            X509v3 Authority Key Identifier: \n                keyid:83:55:77:2D:5E:21:F1:49:0C:09:24:E7:54:09:12:8D:C8:7E:04:AE\n                DirName:/C=US/ST=IL/L=Chicago/O=Testing/CN=Testing Root CA\n                serial:3D:0C:C4:E0:C6:DE:B9:F4\n\n            X509v3 Basic Constraints: \n                CA:TRUE\n    Signature Algorithm: sha1WithRSAEncryption\n         61:82:0d:ac:cc:24:6a:16:34:1a:5c:d3:7b:ba:fa:c9:9c:f7:\n         97:44:79:a7:76:2a:56:57:04:04:ce:74:54:f5:55:eb:18:df:\n         e9:d4:3a:a6:61:12:14:c6:94:33:22:86:48:1a:66:7c:e8:22:\n         af:d4:6a:68:9d:7a:09:38:86:2a:ec:09:3f:d1:fb:ab:ec:28:\n         00:31:35:37:01:8d:47:99:8e:5c:a4:08:95:b2:e6:88:d2:84:\n         67:ed:5c:82:98:c3:f9:e3:55:b2:8c:5e:bb:dc:f3:7a:a6:4d:\n         d1:a5:dd:30:0c:d1:fc:50:22:9a:a0:72:09:45:2e:f7:84:06:\n         0c:e7\n' != 'Certificate:\n    Data:\n        Version: 3 (0x2)\n        Serial Number: 4399107405722335732 (0x3d0cc4e0c6deb9f4)\n    Signature Algorithm: sha1WithRSAEncryption\n        Issuer: C=US, ST=IL, L=Chicago, O=Testing, CN=Testing Root CA\n        Validity\n            Not Before: Mar 25 12:36:58 2009 GMT\n            Not After : Jun 11 12:36:58 2017 GMT\n        Subject: C=US, ST=IL, L=Chicago, O=Testing, CN=Testing Root CA\n        Subject Public Key Info:\n            Public Key Algorithm: rsaEncryption\n                Public-Key: (1024 bit)\n                Modulus:\n                    00:f9:9a:42:e9:8b:ba:ba:44:e7:6e:ee:48:41:dd:\n                    2f:5a:6a:70:34:66:5b:3b:be:f7:c6:3a:60:7c:d3:\n                    fc:9e:ca:58:46:a6:c8:c0:8d:67:a7:d1:5b:52:42:\n                    47:bf:36:51:0f:1a:d3:b7:f2:db:15:ec:2b:2e:16:\n                    74:a6:b1:c8:6f:02:71:ab:70:99:7b:e9:bd:14:38:\n                    e1:d4:80:34:c8:a1:1c:42:e9:00:d4:dd:c9:5a:7a:\n                    0c:2c:ac:10:3e:b0:91:01:6e:ac:79:45:d5:db:21:\n                    11:a2:70:f1:bf:f2:a4:38:66:6d:52:28:e8:28:b5:\n                    c6:f0:89:aa:2b:db:2c:59:db\n                Exponent: 65537 (0x10001)\n        X509v3 extensions:\n            X509v3 Subject Key Identifier: \n                83:55:77:2D:5E:21:F1:49:0C:09:24:E7:54:09:12:8D:C8:7E:04:AE\n            X509v3 Authority Key Identifier: \n                keyid:83:55:77:2D:5E:21:F1:49:0C:09:24:E7:54:09:12:8D:C8:7E:04:AE\n                DirName:/C=US/ST=IL/L=Chicago/O=Testing/CN=Testing Root CA\n                serial:3D:0C:C4:E0:C6:DE:B9:F4\n\n            X509v3 Basic Constraints: \n                CA:TRUE\n    Signature Algorithm: sha1WithRSAEncryption\n         61:82:0d:ac:cc:24:6a:16:34:1a:5c:d3:7b:ba:fa:c9:9c:f7:\n         97:44:79:a7:76:2a:56:57:04:04:ce:74:54:f5:55:eb:18:df:\n         e9:d4:3a:a6:61:12:14:c6:94:33:22:86:48:1a:66:7c:e8:22:\n         af:d4:6a:68:9d:7a:09:38:86:2a:ec:09:3f:d1:fb:ab:ec:28:\n         00:31:35:37:01:8d:47:99:8e:5c:a4:08:95:b2:e6:88:d2:84:\n         67:ed:5c:82:98:c3:f9:e3:55:b2:8c:5e:bb:dc:f3:7a:a6:4d:\n         d1:a5:dd:30:0c:d1:fc:50:22:9a:a0:72:09:45:2e:f7:84:06:\n         0c:e7\n'
 
 tests/test_crypto.py:2781: AssertionError
. tests/test_crypto.py::FunctionTests::test_dump_certificate_bad_type
. tests/test_crypto.py::FunctionTests::test_dump_certificate_request
. tests/test_crypto.py::FunctionTests::test_dump_privatekey_asn1
. tests/test_crypto.py::FunctionTests::test_dump_privatekey_invalid_filetype
. tests/test_crypto.py::FunctionTests::test_dump_privatekey_invalid_passphrase_type
. tests/test_crypto.py::FunctionTests::test_dump_privatekey_passphrase
. tests/test_crypto.py::FunctionTests::test_dump_privatekey_passphraseCallback
. tests/test_crypto.py::FunctionTests::test_dump_privatekey_passphraseCallbackLength
. tests/test_crypto.py::FunctionTests::test_dump_privatekey_passphraseWrongType
. tests/test_crypto.py::FunctionTests::test_dump_privatekey_passphrase_exception
. tests/test_crypto.py::FunctionTests::test_dump_privatekey_pem
. tests/test_crypto.py::FunctionTests::test_dump_privatekey_text
. tests/test_crypto.py::FunctionTests::test_dump_privatekey_unknown_cipher
. tests/test_crypto.py::FunctionTests::test_dump_privatekey_wrong_args
. tests/test_crypto.py::FunctionTests::test_dump_publickey_asn1
. tests/test_crypto.py::FunctionTests::test_dump_publickey_invalid_type
. tests/test_crypto.py::FunctionTests::test_dump_publickey_pem
. tests/test_crypto.py::FunctionTests::test_load_pkcs7_data_asn1
. tests/test_crypto.py::FunctionTests::test_load_pkcs7_data_invalid
. tests/test_crypto.py::FunctionTests::test_load_pkcs7_data_pem
. tests/test_crypto.py::FunctionTests::test_load_pkcs7_type_invalid
. tests/test_crypto.py::FunctionTests::test_load_privatekey_invalid_format
. tests/test_crypto.py::FunctionTests::test_load_privatekey_invalid_passphrase_type
. tests/test_crypto.py::FunctionTests::test_load_privatekey_passphrase
. tests/test_crypto.py::FunctionTests::test_load_privatekey_passphraseCallback
. tests/test_crypto.py::FunctionTests::test_load_privatekey_passphraseCallbackLength
. tests/test_crypto.py::FunctionTests::test_load_privatekey_passphraseWrongType
. tests/test_crypto.py::FunctionTests::test_load_privatekey_passphrase_exception
. tests/test_crypto.py::FunctionTests::test_load_privatekey_passphrase_wrong_return_type
. tests/test_crypto.py::FunctionTests::test_load_privatekey_wrongPassphrase
. tests/test_crypto.py::FunctionTests::test_load_privatekey_wrongPassphraseCallback
. tests/test_crypto.py::FunctionTests::test_load_privatekey_wrong_args
. tests/test_crypto.py::LoadCertificateTests::test_badFileType
. tests/test_crypto.py::LoadCertificateTests::test_bad_certificate
. tests/test_crypto.py::PKCS7Tests::test_attribute
. tests/test_crypto.py::PKCS7Tests::test_get_type_name
. tests/test_crypto.py::PKCS7Tests::test_get_type_name_wrong_args
. tests/test_crypto.py::PKCS7Tests::test_type
. tests/test_crypto.py::PKCS7Tests::test_type_is_data
. tests/test_crypto.py::PKCS7Tests::test_type_is_data_wrong_args
. tests/test_crypto.py::PKCS7Tests::test_type_is_enveloped
. tests/test_crypto.py::PKCS7Tests::test_type_is_enveloped_wrong_args
. tests/test_crypto.py::PKCS7Tests::test_type_is_signed
. tests/test_crypto.py::PKCS7Tests::test_type_is_signedAndEnveloped
. tests/test_crypto.py::PKCS7Tests::test_type_is_signedAndEnveloped_wrong_args
. tests/test_crypto.py::PKCS7Tests::test_type_is_signed_wrong_args
. tests/test_crypto.py::NetscapeSPKITests::test_b64_encode
. tests/test_crypto.py::NetscapeSPKITests::test_construction
. tests/test_crypto.py::NetscapeSPKITests::test_invalid_attribute
. tests/test_crypto.py::NetscapeSPKITests::test_sign
. tests/test_crypto.py::NetscapeSPKITests::test_signWithPublicKey
. tests/test_crypto.py::NetscapeSPKITests::test_signWithUngenerated
. tests/test_crypto.py::NetscapeSPKITests::test_signWithUnknownDigest
. tests/test_crypto.py::NetscapeSPKITests::test_type
. tests/test_crypto.py::TestRevoked::()::test_ignores_unsupported_revoked_cert_extension_get_reason
. tests/test_crypto.py::TestRevoked::()::test_ignores_unsupported_revoked_cert_extension_set_new_reason
. tests/test_crypto.py::RevokedTests::test_construction
. tests/test_crypto.py::RevokedTests::test_construction_wrong_args
. tests/test_crypto.py::RevokedTests::test_date
. tests/test_crypto.py::RevokedTests::test_get_reason_wrong_arguments
. tests/test_crypto.py::RevokedTests::test_reason
. tests/test_crypto.py::RevokedTests::test_serial
. tests/test_crypto.py::RevokedTests::test_set_reason_wrong_arguments
. tests/test_crypto.py::CRLTests::test_add_revoked_keyword
. tests/test_crypto.py::CRLTests::test_add_revoked_wrong_args
. tests/test_crypto.py::CRLTests::test_construction
. tests/test_crypto.py::CRLTests::test_construction_wrong_args
. tests/test_crypto.py::CRLTests::test_dump_crl
. tests/test_crypto.py::CRLTests::test_export_custom_digest
. tests/test_crypto.py::CRLTests::test_export_default_digest
. tests/test_crypto.py::CRLTests::test_export_der
. tests/test_crypto.py::CRLTests::test_export_invalid
. tests/test_crypto.py::CRLTests::test_export_md5_digest
. tests/test_crypto.py::CRLTests::test_export_pem
. tests/test_crypto.py::CRLTests::test_export_text
. tests/test_crypto.py::CRLTests::test_export_unknown_digest
. tests/test_crypto.py::CRLTests::test_export_unknown_filetype
. tests/test_crypto.py::CRLTests::test_export_wrong_args
. tests/test_crypto.py::CRLTests::test_get_issuer
. tests/test_crypto.py::CRLTests::test_get_revoked
. tests/test_crypto.py::CRLTests::test_get_revoked_wrong_args
. tests/test_crypto.py::CRLTests::test_load_crl
. tests/test_crypto.py::CRLTests::test_load_crl_bad_data
. tests/test_crypto.py::CRLTests::test_load_crl_bad_filetype
. tests/test_crypto.py::CRLTests::test_load_crl_wrong_args
. tests/test_crypto.py::CRLTests::test_verify_with_missing_crl
. tests/test_crypto.py::CRLTests::test_verify_with_revoked
. tests/test_crypto.py::X509StoreContextTests::test_invalid_chain_no_intermediate
. tests/test_crypto.py::X509StoreContextTests::test_invalid_chain_no_root
. tests/test_crypto.py::X509StoreContextTests::test_modification_pre_verify
. tests/test_crypto.py::X509StoreContextTests::test_reuse
. tests/test_crypto.py::X509StoreContextTests::test_trusted_self_signed
. tests/test_crypto.py::X509StoreContextTests::test_untrusted_self_signed
. tests/test_crypto.py::X509StoreContextTests::test_valid
. tests/test_crypto.py::SignVerifyTests::test_sign_nulls
. tests/test_crypto.py::SignVerifyTests::test_sign_verify
. tests/test_crypto.py::SignVerifyTests::test_sign_verify_with_text
. tests/test_crypto.py::SignVerifyTests::test_sign_with_large_key
. tests/test_crypto.py::EllipticCurveTests::test_a_curve
. tests/test_crypto.py::EllipticCurveTests::test_not_a_curve
. tests/test_crypto.py::EllipticCurveTests::test_repr
. tests/test_crypto.py::EllipticCurveTests::test_set
. tests/test_crypto.py::EllipticCurveTests::test_some_curves
. tests/test_crypto.py::EllipticCurveTests::test_to_EC_KEY
. tests/test_crypto.py::EllipticCurveEqualityTests::test_anotherTypeEq
. tests/test_crypto.py::EllipticCurveEqualityTests::test_anotherTypeNe
. tests/test_crypto.py::EllipticCurveEqualityTests::test_delegateNe
. tests/test_crypto.py::EllipticCurveEqualityTests::test_delegatedEq
. tests/test_crypto.py::EllipticCurveEqualityTests::test_differentEq
. tests/test_crypto.py::EllipticCurveEqualityTests::test_differentNe
. tests/test_crypto.py::EllipticCurveEqualityTests::test_identicalEq
. tests/test_crypto.py::EllipticCurveEqualityTests::test_identicalNe
. tests/test_crypto.py::EllipticCurveEqualityTests::test_sameEq
. tests/test_crypto.py::EllipticCurveEqualityTests::test_sameNe
. tests/test_crypto.py::EllipticCurveHashTests::test_contains
. tests/test_crypto.py::EllipticCurveHashTests::test_does_not_contain
. tests/test_rand.py::pep8
. tests/test_rand.py::pyflakes
. tests/test_rand.py::RandTests::test_add
. tests/test_rand.py::RandTests::test_add_wrong_args
. tests/test_rand.py::RandTests::test_bytes
. tests/test_rand.py::RandTests::test_bytes_paths
. tests/test_rand.py::RandTests::test_bytes_wrong_args
. tests/test_rand.py::RandTests::test_cleanup
. tests/test_rand.py::RandTests::test_cleanup_wrong_args
. tests/test_rand.py::RandTests::test_egd_warning
. tests/test_rand.py::RandTests::test_egd_wrong_args
. tests/test_rand.py::RandTests::test_insufficientMemory
. tests/test_rand.py::RandTests::test_load_file_wrong_args
. tests/test_rand.py::RandTests::test_seed
. tests/test_rand.py::RandTests::test_seed_wrong_args
. tests/test_rand.py::RandTests::test_status
. tests/test_rand.py::RandTests::test_status_wrong_args
. tests/test_rand.py::RandTests::test_unicode_paths
. tests/test_rand.py::RandTests::test_write_file_wrong_args
. tests/test_ssl.py::pep8
. tests/test_ssl.py::pyflakes
. tests/test_ssl.py::VersionTests::test_OPENSSL_VERSION_NUMBER
. tests/test_ssl.py::VersionTests::test_SSLeay_version
. tests/test_ssl.py::TestContext::()::test_set_cipher_list[0hello world:AES128-SHA]
. tests/test_ssl.py::TestContext::()::test_set_cipher_list[1hello world:AES128-SHA]
. tests/test_ssl.py::TestContext::()::test_set_cipher_list_wrong_args[cipher_list0-TypeError]
. tests/test_ssl.py::TestContext::()::test_set_cipher_list_wrong_args[imaginary-cipher-Error]
. tests/test_ssl.py::TestContext::()::test_load_client_ca
. tests/test_ssl.py::TestContext::()::test_load_client_ca_invalid
. tests/test_ssl.py::TestContext::()::test_load_client_ca_unicode
. tests/test_ssl.py::TestContext::()::test_set_session_id
. tests/test_ssl.py::TestContext::()::test_set_session_id_fail
. tests/test_ssl.py::TestContext::()::test_set_session_id_unicode
. tests/test_ssl.py::ContextTests::test_add_extra_chain_cert
. tests/test_ssl.py::ContextTests::test_add_extra_chain_cert_invalid_cert
. tests/test_ssl.py::ContextTests::test_app_data
. tests/test_ssl.py::ContextTests::test_check_privatekey_invalid
. tests/test_ssl.py::ContextTests::test_check_privatekey_valid
. tests/test_ssl.py::ContextTests::test_check_privatekey_wrong_args
. tests/test_ssl.py::ContextTests::test_get_app_data_wrong_args
. tests/test_ssl.py::ContextTests::test_get_cert_store
. tests/test_ssl.py::ContextTests::test_get_session_cache_mode_wrong_args
. tests/test_ssl.py::ContextTests::test_get_timeout_wrong_args
. tests/test_ssl.py::ContextTests::test_get_verify_depth_wrong_args
. tests/test_ssl.py::ContextTests::test_get_verify_mode_wrong_args
. tests/test_ssl.py::ContextTests::test_load_tmp_dh_bytes
. tests/test_ssl.py::ContextTests::test_load_tmp_dh_missing_file
. tests/test_ssl.py::ContextTests::test_load_tmp_dh_unicode
. tests/test_ssl.py::ContextTests::test_load_tmp_dh_wrong_args
. tests/test_ssl.py::ContextTests::test_load_verify_bytes_cafile
. tests/test_ssl.py::ContextTests::test_load_verify_directory_bytes_capath
. tests/test_ssl.py::ContextTests::test_load_verify_directory_unicode_capath
. tests/test_ssl.py::ContextTests::test_load_verify_invalid_file
. tests/test_ssl.py::ContextTests::test_load_verify_locations_wrong_args
. tests/test_ssl.py::ContextTests::test_load_verify_unicode_cafile
. tests/test_ssl.py::ContextTests::test_method
. tests/test_ssl.py::ContextTests::test_method_long
. tests/test_ssl.py::ContextTests::test_passwd_callback_exception
. tests/test_ssl.py::ContextTests::test_passwd_callback_false
. tests/test_ssl.py::ContextTests::test_passwd_callback_non_string
. tests/test_ssl.py::ContextTests::test_passwd_callback_too_long
. tests/test_ssl.py::ContextTests::test_session_cache_mode
. tests/test_ssl.py::ContextTests::test_session_cache_mode_long
. tests/test_ssl.py::ContextTests::test_set_app_data_wrong_args
s tests/test_ssl.py::ContextTests::test_set_default_verify_paths
 Skipped: This test doesn't work within OWAN, even with proxy set
. tests/test_ssl.py::ContextTests::test_set_default_verify_paths_signature
. tests/test_ssl.py::ContextTests::test_set_info_callback
. tests/test_ssl.py::ContextTests::test_set_mode
. tests/test_ssl.py::ContextTests::test_set_mode_long
. tests/test_ssl.py::ContextTests::test_set_mode_wrong_args
. tests/test_ssl.py::ContextTests::test_set_options
. tests/test_ssl.py::ContextTests::test_set_options_long
. tests/test_ssl.py::ContextTests::test_set_options_wrong_args
. tests/test_ssl.py::ContextTests::test_set_passwd_cb
. tests/test_ssl.py::ContextTests::test_set_passwd_cb_wrong_args
. tests/test_ssl.py::ContextTests::test_set_session_cache_mode_wrong_args
. tests/test_ssl.py::ContextTests::test_set_timeout_wrong_args
. tests/test_ssl.py::ContextTests::test_set_tmp_ecdh
. tests/test_ssl.py::ContextTests::test_set_verify_callback_connection_argument
. tests/test_ssl.py::ContextTests::test_set_verify_callback_exception
. tests/test_ssl.py::ContextTests::test_set_verify_depth_wrong_args
. tests/test_ssl.py::ContextTests::test_set_verify_mode
. tests/test_ssl.py::ContextTests::test_set_verify_mode_long
. tests/test_ssl.py::ContextTests::test_timeout
. tests/test_ssl.py::ContextTests::test_timeout_long
. tests/test_ssl.py::ContextTests::test_type
. tests/test_ssl.py::ContextTests::test_use_certificate
. tests/test_ssl.py::ContextTests::test_use_certificate_chain_file_bytes
. tests/test_ssl.py::ContextTests::test_use_certificate_chain_file_unicode
. tests/test_ssl.py::ContextTests::test_use_certificate_chain_file_wrong_args
. tests/test_ssl.py::ContextTests::test_use_certificate_file_bytes
. tests/test_ssl.py::ContextTests::test_use_certificate_file_long
. tests/test_ssl.py::ContextTests::test_use_certificate_file_missing
. tests/test_ssl.py::ContextTests::test_use_certificate_file_unicode
. tests/test_ssl.py::ContextTests::test_use_certificate_file_wrong_args
. tests/test_ssl.py::ContextTests::test_use_certificate_uninitialized
. tests/test_ssl.py::ContextTests::test_use_certificate_wrong_args
. tests/test_ssl.py::ContextTests::test_use_privatekey
. tests/test_ssl.py::ContextTests::test_use_privatekey_file_bytes
. tests/test_ssl.py::ContextTests::test_use_privatekey_file_long
. tests/test_ssl.py::ContextTests::test_use_privatekey_file_missing
. tests/test_ssl.py::ContextTests::test_use_privatekey_file_unicode
. tests/test_ssl.py::ContextTests::test_verify_depth
. tests/test_ssl.py::ContextTests::test_verify_depth_long
. tests/test_ssl.py::ServerNameCallbackTests::test_no_servername
. tests/test_ssl.py::ServerNameCallbackTests::test_old_callback_forgotten
. tests/test_ssl.py::ServerNameCallbackTests::test_servername
. tests/test_ssl.py::ServerNameCallbackTests::test_wrong_args
. tests/test_ssl.py::NextProtoNegotiationTests::test_npn_advertise_error
. tests/test_ssl.py::NextProtoNegotiationTests::test_npn_client_fail
. tests/test_ssl.py::NextProtoNegotiationTests::test_npn_select_error
. tests/test_ssl.py::NextProtoNegotiationTests::test_npn_success
. tests/test_ssl.py::ApplicationLayerProtoNegotiationTests::test_alpn_callback_exception
. tests/test_ssl.py::ApplicationLayerProtoNegotiationTests::test_alpn_no_server
. tests/test_ssl.py::ApplicationLayerProtoNegotiationTests::test_alpn_server_fail
. tests/test_ssl.py::ApplicationLayerProtoNegotiationTests::test_alpn_set_on_connection
. tests/test_ssl.py::ApplicationLayerProtoNegotiationTests::test_alpn_success
. tests/test_ssl.py::SessionTests::test_construction
. tests/test_ssl.py::SessionTests::test_construction_wrong_args
. tests/test_ssl.py::ConnectionTests::test_accept
. tests/test_ssl.py::ConnectionTests::test_accept_wrong_args
. tests/test_ssl.py::ConnectionTests::test_app_data
. tests/test_ssl.py::ConnectionTests::test_app_data_wrong_args
. tests/test_ssl.py::ConnectionTests::test_client_get_session
. tests/test_ssl.py::ConnectionTests::test_client_set_session
. tests/test_ssl.py::ConnectionTests::test_connect
. tests/test_ssl.py::ConnectionTests::test_connect_ex
. tests/test_ssl.py::ConnectionTests::test_connect_refused
. tests/test_ssl.py::ConnectionTests::test_connect_wrong_args
. tests/test_ssl.py::ConnectionTests::test_connection_undefined_attr
. tests/test_ssl.py::ConnectionTests::test_get_cipher_bits
. tests/test_ssl.py::ConnectionTests::test_get_cipher_bits_before_connect
. tests/test_ssl.py::ConnectionTests::test_get_cipher_name
. tests/test_ssl.py::ConnectionTests::test_get_cipher_name_before_connect
. tests/test_ssl.py::ConnectionTests::test_get_cipher_version
. tests/test_ssl.py::ConnectionTests::test_get_cipher_version_before_connect
. tests/test_ssl.py::ConnectionTests::test_get_context
. tests/test_ssl.py::ConnectionTests::test_get_context_wrong_args
. tests/test_ssl.py::ConnectionTests::test_get_finished
. tests/test_ssl.py::ConnectionTests::test_get_finished_before_connect
. tests/test_ssl.py::ConnectionTests::test_get_peer_cert_chain
. tests/test_ssl.py::ConnectionTests::test_get_peer_cert_chain_none
. tests/test_ssl.py::ConnectionTests::test_get_peer_cert_chain_wrong_args
. tests/test_ssl.py::ConnectionTests::test_get_peer_finished
. tests/test_ssl.py::ConnectionTests::test_get_peer_finished_before_connect
. tests/test_ssl.py::ConnectionTests::test_get_protocol_version
. tests/test_ssl.py::ConnectionTests::test_get_protocol_version_name
. tests/test_ssl.py::ConnectionTests::test_get_servername_wrong_args
. tests/test_ssl.py::ConnectionTests::test_get_session_unconnected
. tests/test_ssl.py::ConnectionTests::test_get_session_wrong_args
. tests/test_ssl.py::ConnectionTests::test_makefile
. tests/test_ssl.py::ConnectionTests::test_peek
. tests/test_ssl.py::ConnectionTests::test_pending
. tests/test_ssl.py::ConnectionTests::test_pending_wrong_args
. tests/test_ssl.py::ConnectionTests::test_server_get_session
. tests/test_ssl.py::ConnectionTests::test_set_context
. tests/test_ssl.py::ConnectionTests::test_set_context_wrong_args
. tests/test_ssl.py::ConnectionTests::test_set_session_wrong_args
F tests/test_ssl.py::ConnectionTests::test_set_session_wrong_method
 self = <tests.test_ssl.ConnectionTests testMethod=test_set_session_wrong_method>
 
     def test_set_session_wrong_method(self):
         """
             If :py:obj:`Connection.set_session` is passed a :py:class:`Session`
             instance associated with a context using a different SSL method than
             the :py:obj:`Connection` is using, a :py:class:`OpenSSL.SSL.Error` is
             raised.
             """
         # Make this work on both OpenSSL 1.0.0, which doesn't support TLSv1.2
         # and also on OpenSSL 1.1.0 which doesn't support SSLv3. (SSL_ST_INIT
         # is a way to check for 1.1.0)
         if SSL_ST_INIT is not None:
             v1 = TLSv1_METHOD
             v2 = SSLv3_METHOD
         else:
             v1 = TLSv1_2_METHOD
             v2 = TLSv1_METHOD
     
         key = load_privatekey(FILETYPE_PEM, server_key_pem)
         cert = load_certificate(FILETYPE_PEM, server_cert_pem)
         ctx = Context(v1)
         ctx.use_privatekey(key)
         ctx.use_certificate(cert)
         ctx.set_session_id("unity-test")
     
         def makeServer(socket):
             server = Connection(ctx, socket)
             server.set_accept_state()
             return server
     
         def makeOriginalClient(socket):
             client = Connection(Context(v1), socket)
             client.set_connect_state()
             return client
     
         originalServer, originalClient = self._loopback(
             serverFactory=makeServer, clientFactory=makeOriginalClient)
         originalSession = originalClient.get_session()
     
         def makeClient(socket):
             # Intentionally use a different, incompatible method here.
             client = Connection(Context(v2), socket)
             client.set_connect_state()
             client.set_session(originalSession)
             return client
     
         self.assertRaises(
             Error,
 >           self._loopback, clientFactory=makeClient, serverFactory=makeServer)
 
 tests/test_ssl.py:2689: 
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
 tests/util.py:283: in failUnlessRaises
     f(*args, **kwargs)
 tests/test_ssl.py:251: in _loopback
     client = clientFactory(client)
 tests/test_ssl.py:2682: in makeClient
     client = Connection(Context(v2), socket)
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
 
 self = <OpenSSL.SSL.Context object at 0xf19d5bcc>, method = 2
 
     def __init__(self, method):
         """
             :param method: One of SSLv2_METHOD, SSLv3_METHOD, SSLv23_METHOD, or
                 TLSv1_METHOD.
             """
         if not isinstance(method, integer_types):
             raise TypeError("method must be an integer")
     
         try:
             method_func = self._methods[method]
         except KeyError:
 >           raise ValueError("No such protocol")
 E           ValueError: No such protocol
 
 ../prototype/i386/usr/lib/python2.7/vendor-packages/OpenSSL/SSL.py:468: ValueError
. tests/test_ssl.py::ConnectionTests::test_set_shutdown
. tests/test_ssl.py::ConnectionTests::test_set_shutdown_long
. tests/test_ssl.py::ConnectionTests::test_set_tlsext_host_name_wrong_args
. tests/test_ssl.py::ConnectionTests::test_shutdown
. tests/test_ssl.py::ConnectionTests::test_shutdown_closed
. tests/test_ssl.py::ConnectionTests::test_shutdown_truncated
. tests/test_ssl.py::ConnectionTests::test_shutdown_wrong_args
. tests/test_ssl.py::ConnectionTests::test_state_string
. tests/test_ssl.py::ConnectionTests::test_tls_finished_message_symmetry
. tests/test_ssl.py::ConnectionTests::test_type
. tests/test_ssl.py::ConnectionTests::test_wantWriteError
. tests/test_ssl.py::ConnectionGetCipherListTests::test_result
. tests/test_ssl.py::ConnectionGetCipherListTests::test_wrong_args
. tests/test_ssl.py::ConnectionSendTests::test_short_buffer
. tests/test_ssl.py::ConnectionSendTests::test_short_bytes
. tests/test_ssl.py::ConnectionSendTests::test_short_memoryview
. tests/test_ssl.py::ConnectionSendTests::test_text
. tests/test_ssl.py::ConnectionSendTests::test_wrong_args
. tests/test_ssl.py::ConnectionRecvIntoTests::test_bytearray_doesnt_overfill
. tests/test_ssl.py::ConnectionRecvIntoTests::test_bytearray_no_length
. tests/test_ssl.py::ConnectionRecvIntoTests::test_bytearray_really_doesnt_overfill
. tests/test_ssl.py::ConnectionRecvIntoTests::test_bytearray_respects_length
. tests/test_ssl.py::ConnectionRecvIntoTests::test_memoryview_doesnt_overfill
. tests/test_ssl.py::ConnectionRecvIntoTests::test_memoryview_no_length
. tests/test_ssl.py::ConnectionRecvIntoTests::test_memoryview_really_doesnt_overfill
. tests/test_ssl.py::ConnectionRecvIntoTests::test_memoryview_respects_length
. tests/test_ssl.py::ConnectionRecvIntoTests::test_peek
. tests/test_ssl.py::ConnectionSendallTests::test_closed
. tests/test_ssl.py::ConnectionSendallTests::test_long
. tests/test_ssl.py::ConnectionSendallTests::test_short
. tests/test_ssl.py::ConnectionSendallTests::test_short_buffers
. tests/test_ssl.py::ConnectionSendallTests::test_short_memoryview
. tests/test_ssl.py::ConnectionSendallTests::test_text
. tests/test_ssl.py::ConnectionSendallTests::test_wrong_args
. tests/test_ssl.py::ConnectionRenegotiateTests::test_renegotiate
. tests/test_ssl.py::ConnectionRenegotiateTests::test_renegotiate_wrong_args
. tests/test_ssl.py::ConnectionRenegotiateTests::test_total_renegotiations
. tests/test_ssl.py::ConnectionRenegotiateTests::test_total_renegotiations_wrong_args
. tests/test_ssl.py::ErrorTests::test_type
. tests/test_ssl.py::ConstantsTests::test_op_cookie_exchange
. tests/test_ssl.py::ConstantsTests::test_op_no_compression
. tests/test_ssl.py::ConstantsTests::test_op_no_query_mtu
. tests/test_ssl.py::ConstantsTests::test_op_no_ticket
. tests/test_ssl.py::ConstantsTests::test_sess_cache_both
. tests/test_ssl.py::ConstantsTests::test_sess_cache_client
. tests/test_ssl.py::ConstantsTests::test_sess_cache_no_auto_clear
. tests/test_ssl.py::ConstantsTests::test_sess_cache_no_internal
. tests/test_ssl.py::ConstantsTests::test_sess_cache_no_internal_lookup
. tests/test_ssl.py::ConstantsTests::test_sess_cache_no_internal_store
. tests/test_ssl.py::ConstantsTests::test_sess_cache_off
. tests/test_ssl.py::ConstantsTests::test_sess_cache_server
. tests/test_ssl.py::MemoryBIOTests::test_add_client_ca_errors
. tests/test_ssl.py::MemoryBIOTests::test_memoryConnect
. tests/test_ssl.py::MemoryBIOTests::test_multiple_add_client_ca
. tests/test_ssl.py::MemoryBIOTests::test_mutated_ca_list
. tests/test_ssl.py::MemoryBIOTests::test_one_add_client_ca
. tests/test_ssl.py::MemoryBIOTests::test_outgoingOverflow
. tests/test_ssl.py::MemoryBIOTests::test_reset_ca_list
. tests/test_ssl.py::MemoryBIOTests::test_set_after_add_client_ca
. tests/test_ssl.py::MemoryBIOTests::test_set_and_add_client_ca
. tests/test_ssl.py::MemoryBIOTests::test_set_client_ca_list_errors
. tests/test_ssl.py::MemoryBIOTests::test_set_empty_ca_list
. tests/test_ssl.py::MemoryBIOTests::test_set_multiple_ca_list
. tests/test_ssl.py::MemoryBIOTests::test_set_one_ca_list
. tests/test_ssl.py::MemoryBIOTests::test_shutdown
. tests/test_ssl.py::MemoryBIOTests::test_socketConnect
. tests/test_ssl.py::MemoryBIOTests::test_socketOverridesMemory
. tests/test_ssl.py::MemoryBIOTests::test_unexpectedEndOfFile
. tests/test_ssl.py::ConnectionBIOTests::test_buffer_size
. tests/test_ssl.py::ConnectionBIOTests::test_buffer_size_long
. tests/test_ssl.py::ConnectionBIOTests::test_wantReadError
. tests/test_ssl.py::InfoConstantTests::test_integers
. tests/test_ssl.py::TestRequires::()::test_available
. tests/test_ssl.py::TestRequires::()::test_unavailable
. tests/test_tsafe.py::pep8
. tests/test_tsafe.py::pyflakes
. tests/test_tsafe.py::ConnectionTest::test_instantiation
. tests/test_util.py::pep8
. tests/test_util.py::pyflakes
. tests/test_util.py::ErrorTests::test_exception_from_error_queue_nonexistent_reason
. tests/util.py::pep8
. tests/util.py::pyflakes