#NEWLINE# def test_equalize_channels( ) : #NEWLINE# #INDENT# 'Test equalization of channels\n    ' #NEWLINE# evoked1 = read_evokeds ( fname , condition = 0 , proj = True ) #NEWLINE# evoked2 = evoked1 . copy ( ) #NEWLINE# ch_names = evoked1 . ch_names [ 2 : ] #NEWLINE# evoked1 . drop_channels ( evoked1 . ch_names [ : 1 ] ) #NEWLINE# evoked2 . drop_channels ( evoked2 . ch_names [ 1 : 2 ] ) #NEWLINE# my_comparison = [ evoked1 , evoked2 ] #NEWLINE# equalize_channels ( my_comparison ) #NEWLINE# for e in my_comparison : #NEWLINE# #INDENT# assert_equal ( ch_names , e . ch_names )