HEX
Server: Apache
System: Linux server1.ariadata.co 4.18.0-553.120.1.el8_10.x86_64 #1 SMP Mon Apr 20 18:04:27 EDT 2026 x86_64
User: nepi (1051)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,show_source,popen,proc_open
Upload Files
File: //usr/share/doc/python3-pycurl/tests/error_constants_test.py
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vi:ts=4:et

import pycurl
import unittest

from . import util

class ErrorConstantsTest(unittest.TestCase):
    @util.min_libcurl(7, 21, 5)
    def test_not_built_in(self):
        assert hasattr(pycurl, 'E_NOT_BUILT_IN')
    
    @util.min_libcurl(7, 24, 0)
    def test_ftp_accept_failed(self):
        assert hasattr(pycurl, 'E_FTP_ACCEPT_FAILED')
    
    @util.min_libcurl(7, 21, 5)
    def test_unknown_option(self):
        assert hasattr(pycurl, 'E_UNKNOWN_OPTION')
    
    @util.min_libcurl(7, 39, 0)
    def test_pinnedpubkeynotmatch(self):
        assert hasattr(pycurl, 'E_SSL_PINNEDPUBKEYNOTMATCH')