def test_bootstrap():
 a_ones = np.ones(10)
 n_boot = 5
 out1 = algo.bootstrap(a_ones, n_boot=n_boot)
 assert_array_equal(out1, np.ones(n_boot))
 out2 = algo.bootstrap(a_ones, n_boot=n_boot, func=np.median)
 assert_array_equal(out2, np.ones(n_boot))

def test_bootstrap ( ) : a_ones = np . ones ( 10 ) n_boot = 5 out1 = algo . bootstrap ( a_ones , n_boot = n_boot ) assert_array_equal ( out1 , np . ones ( n_boot ) ) out2 = algo . bootstrap ( a_ones , n_boot = n_boot , func = np . median ) assert_array_equal ( out2 , np . ones ( n_boot ) )
test of bootstrapping of epochs .