def test_pick_channels_regexp():
 ch_names = ['MEG 2331', 'MEG 2332', 'MEG 2333']
 assert_array_equal(pick_channels_regexp(ch_names, 'MEG ...1'), [0])
 assert_array_equal(pick_channels_regexp(ch_names, 'MEG ...[2-3]'), [1, 2])
 assert_array_equal(pick_channels_regexp(ch_names, 'MEG *'), [0, 1, 2])

def test_pick_channels_regexp ( ) : ch_names = [ 'MEG 2331' , 'MEG 2332' , 'MEG 2333' ] assert_array_equal ( pick_channels_regexp ( ch_names , 'MEG ...1' ) , [ 0 ] ) assert_array_equal ( pick_channels_regexp ( ch_names , 'MEG ...[2-3]' ) , [ 1 , 2 ] ) assert_array_equal ( pick_channels_regexp ( ch_names , 'MEG *' ) , [ 0 , 1 , 2 ] )
test pick with regular expression .