autobahn.xbr.test.test_xbr_eip712


Module Contents

Classes

TestEip712Certificate

A unit test. The atom of the unit testing universe.

TestEip712CertificateChain

A unit test. The atom of the unit testing universe.

Attributes

HAS_INFURA

IS_CPY_310

autobahn.xbr.test.test_xbr_eip712.HAS_INFURA
autobahn.xbr.test.test_xbr_eip712.IS_CPY_310
class autobahn.xbr.test.test_xbr_eip712.TestEip712Certificate(methodName='runTest')[source]

Bases: twisted.trial.unittest.TestCase

A unit test. The atom of the unit testing universe.

This class extends L{SynchronousTestCase} which extends C{unittest.TestCase} from the standard library. The main feature is the ability to return C{Deferred}s from tests and fixture methods and to have the suite wait for those C{Deferred}s to fire. Also provides new assertions such as L{assertFailure}.

@ivar timeout: A real number of seconds. If set, the test will raise an error if it takes longer than C{timeout} seconds. If not set, util.DEFAULT_TIMEOUT_DURATION is used.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_eip712_delegate_certificate()[source]
test_eip712_authority_certificate()[source]
class autobahn.xbr.test.test_xbr_eip712.TestEip712CertificateChain(methodName='runTest')[source]

Bases: twisted.trial.unittest.TestCase

A unit test. The atom of the unit testing universe.

This class extends L{SynchronousTestCase} which extends C{unittest.TestCase} from the standard library. The main feature is the ability to return C{Deferred}s from tests and fixture methods and to have the suite wait for those C{Deferred}s to fire. Also provides new assertions such as L{assertFailure}.

@ivar timeout: A real number of seconds. If set, the test will raise an error if it takes longer than C{timeout} seconds. If not set, util.DEFAULT_TIMEOUT_DURATION is used.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_eip712_create_certificate_chain_manual()[source]
test_eip712_create_certificate_chain_highlevel()[source]
test_eip712_verify_certificate_chain_manual()[source]
test_eip712_verify_certificate_chain_highlevel()[source]