Download .venv/lib/python3.12/site-packages/certifi/tests/test_certify.py from FaustDerLegende/split: direct link, hf CLI and curl.
- Browser
- Download file 467 Bytes
-
https://huggingface.co/datasets/FaustDerLegende/split/resolve/main/.venv/lib/python3.12/site-packages/certifi/tests/test_certify.py
- Command line
-
hf download hf://datasets/FaustDerLegende/split/.venv/lib/python3.12/site-packages/certifi/tests/test_certify.py
-
curl -L -o test_certify.py https://huggingface.co/datasets/FaustDerLegende/split/resolve/main/.venv/lib/python3.12/site-packages/certifi/tests/test_certify.py
467 Bytes
| 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') | |
| ) | |