def test_bootstrap_random_seed():
 data = rs.randn(50)
 seed = 42
 boots1 = algo.bootstrap(data, random_seed=seed)
 boots2 = algo.bootstrap(data, random_seed=seed)
 assert_array_equal(boots1, boots2)

def test_bootstrap_random_seed ( ) : data = rs . randn ( 50 ) seed = 42 boots1 = algo . bootstrap ( data , random_seed = seed ) boots2 = algo . bootstrap ( data , random_seed = seed ) assert_array_equal ( boots1 , boots2 )
test that we can get reproducible resamples by seeding the rng .