#NEWLINE# def _check_fwd_n_chan_consistent( fwd , n_expected ) : #NEWLINE# #INDENT# n_ok = len ( fwd [ 'info' ] [ 'ch_names' ] ) #NEWLINE# n_sol = fwd [ 'sol' ] [ 'data' ] . shape [ 0 ] #NEWLINE# assert_equal ( n_expected , n_sol ) #NEWLINE# assert_equal ( n_expected , n_ok )