| Server IP : 112.74.42.100 / Your IP : 216.73.216.142 Web Server : nginx/1.20.2 System : Linux iZwz96lx4pjqiy84w4hni7Z 5.10.134-17.3.al8.x86_64 #1 SMP Thu Oct 31 14:29:57 CST 2024 x86_64 User : www ( 1000) PHP Version : 8.0.26 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/usr/share/doc/python3-pycurl/tests/ |
Upload File : |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vi:ts=4:et
import pycurl
import unittest
from . import util
class VersionConstantsTest(unittest.TestCase):
def test_ipv6(self):
assert hasattr(pycurl, 'VERSION_IPV6')
def test_kerberos4(self):
assert hasattr(pycurl, 'VERSION_KERBEROS4')
@util.min_libcurl(7, 40, 0)
def test_kerberos5(self):
assert hasattr(pycurl, 'VERSION_KERBEROS5')
def test_ssl(self):
assert hasattr(pycurl, 'VERSION_SSL')
def test_libz(self):
assert hasattr(pycurl, 'VERSION_LIBZ')
def test_ntlm(self):
assert hasattr(pycurl, 'VERSION_NTLM')
def test_gssnegotiate(self):
assert hasattr(pycurl, 'VERSION_GSSNEGOTIATE')
def test_debug(self):
assert hasattr(pycurl, 'VERSION_DEBUG')
@util.min_libcurl(7, 19, 6)
def test_curldebug(self):
assert hasattr(pycurl, 'VERSION_CURLDEBUG')
def test_asynchdns(self):
assert hasattr(pycurl, 'VERSION_ASYNCHDNS')
def test_spnego(self):
assert hasattr(pycurl, 'VERSION_SPNEGO')
def test_largefile(self):
assert hasattr(pycurl, 'VERSION_LARGEFILE')
def test_idn(self):
assert hasattr(pycurl, 'VERSION_IDN')
def test_sspi(self):
assert hasattr(pycurl, 'VERSION_SSPI')
@util.min_libcurl(7, 38, 0)
def test_gssapi(self):
assert hasattr(pycurl, 'VERSION_GSSAPI')
def test_conv(self):
assert hasattr(pycurl, 'VERSION_CONV')
@util.min_libcurl(7, 21, 4)
def test_tlsauth_srp(self):
assert hasattr(pycurl, 'VERSION_TLSAUTH_SRP')
@util.min_libcurl(7, 22, 0)
def test_ntlm_wb(self):
assert hasattr(pycurl, 'VERSION_NTLM_WB')
@util.min_libcurl(7, 33, 0)
def test_http2(self):
assert hasattr(pycurl, 'VERSION_HTTP2')
@util.min_libcurl(7, 40, 0)
def test_unix_sockets(self):
assert hasattr(pycurl, 'VERSION_UNIX_SOCKETS')
@util.min_libcurl(7, 47, 0)
def test_psl(self):
assert hasattr(pycurl, 'VERSION_PSL')