def METHOD_NAME(self):
    # Test for ticket #923
    N = 1000
    mt19937 = Generator(MT19937(0))
    rvsn = mt19937.logseries(0.8, size=N)
    # these two frequency counts should be close to theoretical
    # numbers with this large sample
    # theoretical large N result is 0.49706795
    freq = np.sum(rvsn == 1) / N
    msg = f'Frequency was {freq:f}, should be > 0.45'
    assert_(freq > 0.45, msg)
    # theoretical large N result is 0.19882718
    freq = np.sum(rvsn == 2) / N
    msg = f'Frequency was {freq:f}, should be < 0.23'
    assert_(freq < 0.23, msg)