def test_has_eeg_average_ref_proj():
 assert_true((not _has_eeg_average_ref_proj([])))
 raw = read_raw_fif(raw_fname)
 raw.set_eeg_reference()
 assert_true(_has_eeg_average_ref_proj(raw.info['projs']))

def test_has_eeg_average_ref_proj ( ) : assert_true ( ( not _has_eeg_average_ref_proj ( [ ] ) ) ) raw = read_raw_fif ( raw_fname ) raw . set_eeg_reference ( ) assert_true ( _has_eeg_average_ref_proj ( raw . info [ 'projs' ] ) )
test checking whether an eeg average reference exists .