def test_check_type_picks():
 picks = np.arange(12)
 assert_array_equal(picks, _check_type_picks(picks))
 picks = list(range(12))
 assert_array_equal(np.array(picks), _check_type_picks(picks))
 picks = None
 assert_array_equal(None, _check_type_picks(picks))
 picks = ['a', 'b']
 assert_raises(ValueError, _check_type_picks, picks)
 picks = 'b'
 assert_raises(ValueError, _check_type_picks, picks)

def test_check_type_picks ( ) : picks = np . arange ( 12 ) assert_array_equal ( picks , _check_type_picks ( picks ) ) picks = list ( range ( 12 ) ) assert_array_equal ( np . array ( picks ) , _check_type_picks ( picks ) ) picks = None assert_array_equal ( None , _check_type_picks ( picks ) ) picks = [ 'a' , 'b' ] assert_raises ( ValueError , _check_type_picks , picks ) picks = 'b' assert_raises ( ValueError , _check_type_picks , picks )
test checking type integrity checks of picks .