def test_001_correlate(self):
     degree = 10
     length = 2**degree-1
     src = digital.glfsr_source_f(degree)
     head = gr.head(gr.sizeof_float, length*length)
     f2c = gr.float_to_complex()
     corr = digital.pn_correlator_cc(degree)
     dst = gr.vector_sink_c()
     self.tb.connect(src, head, f2c, corr, dst)
     self.tb.run()
     data = dst.data()
     self.assertEqual(data[-1], (1.0+0j))
 def test_000_make(self):
     c = digital.pn_correlator_cc(10)