def test_bootstrap_range():
 (min, max) = (a_norm.min(), a_norm.max())
 out = algo.bootstrap(a_norm)
 nose.tools.assert_less(min, out.min())
 nose.tools.assert_greater_equal(max, out.max())

def test_bootstrap_range ( ) : ( min , max ) = ( a_norm . min ( ) , a_norm . max ( ) ) out = algo . bootstrap ( a_norm ) nose . tools . assert_less ( min , out . min ( ) ) nose . tools . assert_greater_equal ( max , out . max ( ) )
test that boostrapping a random array stays within the right range .