def METHOD_NAME(self):
    with pm.Model():
        pm.HalfNormal("a", sigma=1, initval=-1, transform=None)
        with pytest.raises(SamplingError) as error:
            pm.sample(chains=1, random_seed=1)
        error.match("Initial evaluation")