def test_balance_prysm(prysm_requests): beacon = get_beacon('localhost', 1) result = beacon.get_balances(10, key_list) assert result == ( 1148763837967000000000, 4, 1148763837967000000000, )
def test_version_lighthouse(lighthouse_requests): beacon = get_beacon('localhost', 1) assert "Lighthouse" in str(beacon.version)
def test_version_bad(bad_requests): with pytest.raises(ValueError) as event: get_beacon('localhost', 1) assert event.type == ValueError
def test_head_prysm(prysm_requests): beacon = get_beacon('localhost', 1) result = beacon.get_actual_slot() assert int(result['actual_slot']) == 604444 and int( result['finalized_slot']) == 499648
def test_genesis_prysm(prysm_requests): beacon = get_beacon('localhost', 1) result = beacon.get_genesis() assert result == 1596535208
def test_version_prysm(prysm_requests): beacon = get_beacon('localhost', 1) assert "Prysm" in str(beacon.version)
def test_balance_lighthouse(lighthouse_requests): beacon = get_beacon('localhost', 1) result = beacon.get_balances(10, key_list) assert result == 31986354237000000000
def test_head_lighthouse(lighthouse_requests): beacon = get_beacon('localhost', 1) result = beacon.get_actual_slot() assert result['actual_slot'] == 604932 and result[ 'finalized_slot'] == 499647
def test_genesis_lighthouse(lighthouse_requests): beacon = get_beacon('localhost', 1) result = beacon.get_genesis() assert result == 1596546008
def test_finalized_epoch_prysm(prysm_requests): beacon = get_beacon('localhost', 1) result = beacon.get_finalized_epoch() assert result == 15614
def test_balance_lighthouse(lighthouse_requests): beacon = get_beacon('localhost', 1) result = beacon.get_balances(10, key_list) assert result == (445738262310000000000, 4, 221738262310000000000)
def test_finalized_epoch_lighthouse(lighthouse_requests): beacon = get_beacon('localhost', 1) result = beacon.get_finalized_epoch() assert result == 23714