Files
packages/lang/python/python-service-identity/test.sh
Alexandru Ardelean c3fc621e25 python-service-identity: update to 24.2.0; add test.sh
Bump version 23.1.0 -> 24.2.0.
Add test.sh to verify module imports and key symbols.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-04-14 08:02:25 +03:00

15 lines
417 B
Bash

#!/bin/sh
[ "$1" = python3-service-identity ] || exit 0
python3 - << 'EOF'
from service_identity import VerificationError
from service_identity.pyopenssl import verify_hostname, verify_ip_address
# Just verify the module imports and key symbols are present
assert callable(verify_hostname)
assert callable(verify_ip_address)
assert issubclass(VerificationError, Exception)
print("python3-service-identity OK")
EOF