def METHOD_NAME(self):
    """Check hafnian_repeated(A)=haf_real(A) for a random
    real matrix.
    """
    A = np.random.random([6, 6])
    A += A.T
    haf = hafnian_repeated(A, [1] * 6)
    expected = jhaf(np.float64(A), np.ones([6], dtype=np.int32))
    assert np.allclose(haf, expected)
    A = np.random.random([6, 6])
    A += A.T
    haf = hafnian_repeated(np.complex128(A), [1] * 6)
    expected = jhaf(np.float64(A), np.ones([6], dtype=np.int32))
    assert np.allclose(haf, expected)