def METHOD_NAME(self):
    test_cred = credential.Credential(
        {
            "thread_id": "thread-12345-67890",
            "schema_id": "schema id",
            "cred_def_id": "not:a:did:987654",
            "rev_reg_id": "rev reg id",
            "attrs": {
                "topic_id": "topic-source-id",
                "effective_date": "eff-date",
                "etc": "more",
            },
        },
        None,
    )
    pconfig = {"cardinality_fields": ["topic_id", "effective_date"]}
    mgr = credential.CredentialManager()
    cardinal = mgr.credential_cardinality(test_cred, pconfig)
    assert cardinal == {
        "values": {"topic_id": "topic-source-id", "effective_date": "eff-date"},
        "hash": b"Vexy8NBqP5g1W3JLBbVLhErCXNjtLnS4gZGekur/ojI=",
    }