Debian Codegraph @

certifi/tests/test_certify.py

raw symbols SCIP
1 import os
2 import unittest
3
4 import certifi
5
6
7 class TestCertifi(unittest.TestCase):
8 def test_cabundle_exists(self) -> None:
9 assert os.path.exists(certifi.where())
10
11 def test_read_contents(self) -> None:
12 content = certifi.contents()
13 assert "-----BEGIN CERTIFICATE-----" in content
14
15 def test_py_typed_exists(self) -> None:
16 assert os.path.exists(
17 os.path.join(os.path.dirname(certifi.__file__), 'py.typed')
18 )