def test_balance_prysm(prysm_requests):
    beacon = get_beacon('localhost', 1)
    result = beacon.get_balances(10, key_list)
    assert result == (
        1148763837967000000000,
        4,
        1148763837967000000000,
    )
Esempio n. 2
0
def test_version_lighthouse(lighthouse_requests):
    beacon = get_beacon('localhost', 1)
    assert "Lighthouse" in str(beacon.version)
Esempio n. 3
0
def test_version_bad(bad_requests):
    with pytest.raises(ValueError) as event:
        get_beacon('localhost', 1)
    assert event.type == ValueError
Esempio n. 4
0
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
Esempio n. 5
0
def test_genesis_prysm(prysm_requests):
    beacon = get_beacon('localhost', 1)
    result = beacon.get_genesis()
    assert result == 1596535208
Esempio n. 6
0
def test_version_prysm(prysm_requests):
    beacon = get_beacon('localhost', 1)
    assert "Prysm" in str(beacon.version)
Esempio n. 7
0
def test_balance_lighthouse(lighthouse_requests):
    beacon = get_beacon('localhost', 1)
    result = beacon.get_balances(10, key_list)
    assert result == 31986354237000000000
Esempio n. 8
0
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
Esempio n. 9
0
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