def test_custom_ca_path_using_env_var_doesnt_exist(self):
        os.environ['SSL_CERT_FILE'] = '/foo/doesnt/exist'

        try:
            reload(libcloud.security)
        except __HOLE__:
            e = sys.exc_info()[1]
            msg = 'Certificate file /foo/doesnt/exist doesn\'t exist'
            self.assertEqual(str(e), msg)
        else:
            self.fail('Exception was not thrown')
dataset/ETHPy150Open apache/libcloud/libcloud/test/test_httplib_ssl.py/TestHttpLibSSLTests.test_custom_ca_path_using_env_var_doesnt_exist