<filename>tests/test_distributions.py<gh_stars>10-100
import numpy as np
import pytest

from episuite import distributions


class TestEmpiricalBootstrap:
    def test_sample(self) -> None:
        ones = np.ones(100, dtype=np.int32)
        dist = distributions.EmpiricalBootstrap(ones)
        samples = dist.sample(100)
        assert (samples==1).sum() == 100

<filename>tests/test_distributions.py<gh_stars>10-100
import numpy as np
import pytest

from episuite import distributions


class TestEmpiricalBootstrap:
    def test_sample(self) -> None:
        ones = np.ones(100, dtype=np.int32)
        dist = distributions.EmpiricalBootstrap(ones)
        samples = dist.sample(100)
        assert (samples==1).sum() == 100
