cmp.tests.test_utilΒΆ

Tests for CMP utility functions.

ClassesΒΆ

TestEnums

Tests for CMP utility enums.

TestNameParser

Tests for NameParser utility class.

Module ContentsΒΆ

class cmp.tests.test_util.TestEnums[source]ΒΆ

Tests for CMP utility enums.

test_pki_message_type_enum()[source]ΒΆ

Test PkiMessageType enum values.

test_general_name_type_enum()[source]ΒΆ

Test GeneralNameType enum values.

test_popo_enum()[source]ΒΆ

Test Popo (Proof of Possession) enum values.

class cmp.tests.test_util.TestNameParser[source]ΒΆ

Tests for NameParser utility class.

test_parse_name_with_utf8_string()[source]ΒΆ

Test parsing a Name with UTF8String attribute.

test_parse_name_with_printable_string()[source]ΒΆ

Test parsing a Name with PrintableString attribute.

test_parse_name_with_multiple_rdns()[source]ΒΆ

Test parsing a Name with multiple RDNs.

test_parse_name_empty_rdn_raises_error()[source]ΒΆ

Test that parsing a Name with empty RDN raises ValueError.

test_parse_name_multi_valued_rdn_raises_error()[source]ΒΆ

Test that parsing a Name with multi-valued RDN raises ValueError.

test_parse_general_name_only_supports_directory_name()[source]ΒΆ

Test that NameParser only supports DirectoryName for GeneralName.

test_parse_name_with_t61_string()[source]ΒΆ

Test parsing a Name with T61String attribute.

test_parse_name_with_visible_string()[source]ΒΆ

Test parsing a Name with VisibleString attribute.

test_parse_name_with_universal_string()[source]ΒΆ

Test parsing a Name with UniversalString attribute.

test_parse_name_with_bmp_string()[source]ΒΆ

Test parsing a Name with BMPString attribute.

test_parse_name_with_numeric_string()[source]ΒΆ

Test parsing a Name with NumericString attribute.

test_parse_name_with_bit_string()[source]ΒΆ

Test parsing a Name with BitString attribute.

test_parse_name_with_octet_string()[source]ΒΆ

Test parsing a Name with OctetString attribute.

test_parse_name_with_utc_time()[source]ΒΆ

Test parsing a Name with UTCTime attribute.

test_parse_name_with_generalized_time()[source]ΒΆ

Test parsing a Name with GeneralizedTime attribute.

test_parse_name_with_unknown_type_raises_error()[source]ΒΆ

Test that parsing a Name with unknown attribute type raises ValueError.

test_parse_general_name_non_directory_raises_error()[source]ΒΆ

Test that parsing a non-DirectoryName GeneralName raises ValueError.

test_parse_name_without_value_raises_error()[source]ΒΆ

Test that parsing a Name without valid RDN sequence raises ValueError.

test_parse_name_with_ia5_string()[source]ΒΆ

Test parsing a Name with IA5String attribute.