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