txacme.test.test_util module¶
-
class
txacme.test.test_util.GeneratePrivateKeyTests(*args, **kwargs)[source]¶ generate_private_keygenerates 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_certgenerates 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_csranddecode_csrserialize CSRs in JOSE Base64 DER encoding.-
test_common_name_too_long()[source]¶ If the first name provided is too long,
csr_for_namesuses a dummy value for the common name.
-
test_decode_garbage()[source]¶ If decoding fails,
decode_csrraisesDeserializationError.
-
test_empty_names_invalid()[source]¶ csr_for_namesraisesValueErrorif given an empty list of names.
-
test_valid_for_names()[source]¶ csr_for_namesreturns a CSR that is actually valid for the given names.
-