@attr("slow")
    def test_draw_lln(self):
        "discrete_rv: lln satisfied?"
        draws = self.drv.draw(1000000)
        counts = pd.Series(Counter(draws))
        counts = (counts / counts.sum()).values
        assert max(np.abs(counts - self.drv.q)) < 1e-2
dataset/ETHPy150Open QuantEcon/QuantEcon.py/quantecon/tests/test_discrete_rv.py/TestDiscreteRV.test_draw_lln/original