HEX
Server: Apache
System: Linux server.enlacediseno.com 4.18.0-553.62.1.el8_10.x86_64 #1 SMP Wed Jul 16 04:08:25 EDT 2025 x86_64
User: maor (1069)
PHP: 7.3.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/doc/python3-pycurl/tests/version_constants_test.py
#! /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')