<s> from charcoal import Charcoal <EOL> import yaml <EOL> import os <EOL> import logging <EOL> THIS_DIR = os . path . dirname ( os . path . realpath ( __file__ ) ) <EOL> LOG = logging . getLogger ( '<STR_LIT>' ) <EOL> LOG . setLevel ( logging . DEBUG ) <EOL> def test_ssl_protocol ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests > <NUM_LIT:0> <EOL> def test_ssl_expired_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests > <NUM_LIT:0> <EOL> def test_ssl_wrong_host_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests > <NUM_LIT:0> <EOL> def test_ssl_self_signed_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests > <NUM_LIT:0> <EOL> def test_ssl_sha1_2016_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_sha1_2017_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_sha256_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_1000_sans_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_10000_sans_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests > <NUM_LIT:0> <EOL> def test_ssl_incomplete_chain_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests > <NUM_LIT:0> <EOL> def test_ssl_rsa8192_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_mixed_script_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_very_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_mixed_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_mixed_favicon_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_cbc_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_rc4_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests > <NUM_LIT:0> <EOL> def test_ssl_mozilla_old_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_mozilla_intermediate_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_mozilla_modern_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_dh480_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_dh1024_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_dh2048_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_dh_small_subgroup_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_dh_composite_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_hsts_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_upgrade_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_preloaded_hsts_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_subdomain_preloaded_hsts_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests > <NUM_LIT:0> <EOL> def test_ssl_http_password_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests > <NUM_LIT:0> <EOL> def test_ssl_pinning_test_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests == <NUM_LIT:0> <EOL> def test_ssl_superfish_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests > <NUM_LIT:0> <EOL> def test_ssl_edellroot_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests > <NUM_LIT:0> <EOL> def test_ssl_dsdtestprovider_badssl_com ( ) : <EOL> total_failed_tests = <NUM_LIT:0> <EOL> total_passed_tests = <NUM_LIT:0> <EOL> myfile = open ( THIS_DIR + '<STR_LIT>' ) <EOL> test_json = yaml . load ( myfile ) <EOL> for test in test_json [ '<STR_LIT>' ] : <EOL> test_obj = Charcoal ( test = test , <EOL> host = '<STR_LIT>' ) <EOL> total_failed_tests += test_obj . failed <EOL> total_passed_tests += test_obj . passed <EOL> LOG . debug ( total_failed_tests ) <EOL> assert total_failed_tests > <NUM_LIT:0> </s>
