def test_sample(self):
"""check sampling from priors"""
msg = "normal sample incorrect"
samp = self.nPrior.sample(random_state=10)
correct = norm(loc=0, scale=1).rvs(random_state=10)
assert samp == correct, msg
文章目录