def test_mc_gumbelr(): x = montecarlo.gumbel_r(1000, 1, .1) ks = stats.kstest(x, 'gumbel_r', stats.gumbel_r.fit(x)) assert ks[1] > .05