txacme.test.test_util module¶
-
class
txacme.test.test_util.
GeneratePrivateKeyTests
(*args, **kwargs)[source]¶ generate_private_key
generates private keys of various types using sensible parameters.-
test_unknown_key_type
()[source]¶ Passing an unknown key type results in
ValueError
.
-
-
class
txacme.test.test_util.
GenerateCertTests
(*args, **kwargs)[source]¶ generate_tls_sni_01_cert
generates a cert and key suitable for responding for the given challenge SAN.-
test_cert_verifies
()[source]¶ The certificates generated verify using
verify_cert
.
-
-
class
txacme.test.test_util.
CSRTests
(*args, **kwargs)[source]¶ encode_csr
anddecode_csr
serialize CSRs in JOSE Base64 DER encoding.-
test_common_name_too_long
()[source]¶ If the first name provided is too long,
csr_for_names
uses a dummy value for the common name.
-
test_decode_garbage
()[source]¶ If decoding fails,
decode_csr
raisesDeserializationError
.
-
test_empty_names_invalid
()[source]¶ csr_for_names
raisesValueError
if given an empty list of names.
-
test_valid_for_names
()[source]¶ csr_for_names
returns a CSR that is actually valid for the given names.
-