/
valemobil
/
python-certifi
Обзор
Документация
Войти
/
valemobil
/
python-certifi
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
certifi/tests/test_certify.py
18 строк
467 B
Hugo van Kemenade
Add support for Python 3.10 and drop EOL 3.5 (#167)
19 май 2022, 15:28
Не верифицирован
19 май 2022, 15:28
04b7480
Код
Авторство
О чём код?
import os import unittest import certifi class TestCertifi(unittest.TestCase): def test_cabundle_exists(self) -> None: assert os.path.exists(certifi.where()) def test_read_contents(self) -> None: content = certifi.contents() assert "-----BEGIN CERTIFICATE-----" in content def test_py_typed_exists(self) -> None: assert os.path.exists( os.path.join(os.path.dirname(certifi.__file__), 'py.typed') )