From ed912f599e9a4c87bac0c3fb4f58776f6bb827ee Mon Sep 17 00:00:00 2001 From: protolambda Date: Sat, 22 May 2021 18:52:29 +0200 Subject: [PATCH] add assertions on flag updates --- .../test_process_participation_flag_updates.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/core/pyspec/eth2spec/test/altair/epoch_processing/test_process_participation_flag_updates.py b/tests/core/pyspec/eth2spec/test/altair/epoch_processing/test_process_participation_flag_updates.py index b98713bfe..287525608 100644 --- a/tests/core/pyspec/eth2spec/test/altair/epoch_processing/test_process_participation_flag_updates.py +++ b/tests/core/pyspec/eth2spec/test/altair/epoch_processing/test_process_participation_flag_updates.py @@ -13,7 +13,10 @@ from eth2spec.test.helpers.epoch_processing import run_epoch_processing_with def run_process_participation_flag_updates(spec, state): + old = state.current_epoch_participation yield from run_epoch_processing_with(spec, state, 'process_participation_flag_updates') + assert state.current_epoch_participation == [0] * len(state.validators) + assert state.previous_epoch_participation == old @with_altair_and_later