@pytest.fixture(scope='module')
def genesis_fixture():
 genesis_fixture = None
 fn = os.path.join(testutils.fixture_path, 'BasicTests', 'genesishashestest.json')
 with open(fn, 'r') as f:
  genesis_fixture = json.load(f)
 assert (genesis_fixture is not None), "Could not read genesishashtest.json from fixtures. Make sure you did 'git submodule init'!"
 for k in ('genesis_rlp_hex', 'genesis_state_root', 'genesis_hash'):
  assert (k in genesis_fixture)
 return fixture_to_bytes(genesis_fixture)

@ pytest . fixture ( scope = 'module' ) def genesis_fixture ( ) : genesis_fixture = None fn = os . path . join ( testutils . fixture_path , 'BasicTests' , 'genesishashestest.json' ) with open ( fn , 'r' ) as f : genesis_fixture = json . load ( f ) assert ( genesis_fixture is not None ) , "Could not read genesishashtest.json from fixtures. Make sure you did 'git submodule init'!" for k in ( 'genesis_rlp_hex' , 'genesis_state_root' , 'genesis_hash' ) : assert ( k in genesis_fixture ) return fixture_to_bytes ( genesis_fixture )
read genesis block from fixtures .