1#! /usr/bin/env python
2# -*- coding: utf-8 -*-
3# vi:ts=4:et
4
5import pycurl
6import unittest
7
8from . import util
9
10class InfoTest(unittest.TestCase):
11    @util.only_ssl
12    def test_ssl_engines(self):
13        curl = pycurl.Curl()
14        engines = curl.getinfo(curl.SSL_ENGINES)
15        # Typical result:
16        # - an empty list in some configurations
17        # - ['rdrand', 'dynamic']
18        self.assertEqual(type(engines), list)
19        curl.close()
20