def test_ssl(self):
        script, expected_out = client_scripts['short']
        ca_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)),
                              'test_scripts/tls')
        ca_pem = os.path.join(ca_dir, 'test.pem')
        ca_chain = os.path.join(ca_dir, 'test_chain.pem')
        cb, client_cmd = self.get_curlbomb(
            '--domain localhost --ssl {ca_pem}'.format(ca_pem=ca_pem), script)
        # Try running without SSL certificate authority known:
        client_out, client_err = self.run_client(client_cmd)
        print(client_err)
        self.assertTrue(client_err in "SSL certificate problem")
        # Try again by instructing curl where to find the CA cert:
        os.environ['CURL_CA_BUNDLE'] = ca_chain
        try:
            client_out, client_err = self.run_client(client_cmd, expected_out)
        finally:
            del os.environ['CURL_CA_BUNDLE']
dataset/ETHPy150Open EnigmaCurry/curlbomb/tests.py/CurlbombTestBase.test_ssl/swapped operands of `in`