File size: 467 Bytes
239c4a3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 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')
)
|