def test_certifi_unknown(): with mock.patch("os.path.exists") as os_path_exists: os_path_exists.side_effect = functools.partial(exists, "unknown") assert certifi.where() is None
def test_certifi_redhat(): with mock.patch("os.path.exists") as os_path_exists: os_path_exists.side_effect = functools.partial(exists, "redhat") assert certifi.where() == "/etc/ssl/certs/ca-bundle.crt"
def test_certifi_debian(): with mock.patch("os.path.exists") as os_path_exists: os_path_exists.side_effect = functools.partial(exists, "debian") assert certifi.where() == "/etc/ssl/certs/ca-certificates.crt"