Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
test new state machine class and new chain class are well defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ChihChengLiang committed Apr 8, 2019
1 parent eef8272 commit ae03f0c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/eth2/beacon/chains/test_chains.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import pytest
from eth2.beacon.chains.testnet import TestnetChain


@pytest.mark.parametrize(
"chain_klass",
(
TestnetChain,
)
)
def test_chain_class_well_defined(chain_klass):
chain = chain_klass(None)
assert chain.sm_configuration is not ()
13 changes: 13 additions & 0 deletions tests/eth2/beacon/state_machines/forks/test_fork_classes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import pytest
from eth2.beacon.state_machines.forks.xiao_long_bao import XiaoLongBaoStateMachine


@pytest.mark.parametrize(
"sm_klass",
(
XiaoLongBaoStateMachine,
)
)
def test_sm_class_well_defined(sm_klass):
state_machine = sm_klass(chaindb=None, block=None)
assert state_machine.get_block_class()

0 comments on commit ae03f0c

Please sign in to comment.