3.0.ipv8.test.attestation.tokentree.test_token ============================================== .. py:module:: 3.0.ipv8.test.attestation.tokentree.test_token Classes ------- .. autoapisummary:: 3.0.ipv8.test.attestation.tokentree.test_token.TestToken Module Contents --------------- .. py:class:: TestToken(methodName: str = 'runTest') Bases: :py:obj:`3.0.ipv8.test.base.TestBase` Tests related to tokens. .. py:method:: setUpClass() -> None :classmethod: Load in test data. .. py:method:: setUp() -> None Create a new private key for testing. .. py:method:: test_create_private_token() -> None Check if a token is correctly created with a private key. .. py:method:: test_verify_token_illegal() -> None Check if a token does not verify for a different public key. .. py:method:: test_create_public_token() -> None Check if a token is correctly loaded with a public key. .. py:method:: test_update_public_token() -> None Check if a token with only a content hash accepts the correct content. .. py:method:: test_update_public_token_illegal() -> None Check if a token with only a content hash rejects invalid content.