def METHOD_NAME(self):
    # Make sure generated random variables are in [-pi, pi].
    # Regression test for ticket #986.
    for mu in np.linspace(-7., 7., 5):
        r = random.vonmises(mu, 1, 50)
        assert_(np.all(r > -np.pi) and np.all(r <= np.pi))