def test_003_f_1(self): #Test streams_to_vector (using stream_to_streams & vector_to_stream). n = 1 src_len = n * 8 src_data = tuple(range(src_len)) expected_results = src_data src = gr.vector_source_f(src_data) op1 = gr.stream_to_streams_comp(gr.sizeof_float, n) op2 = gr.streams_to_vector_comp(gr.sizeof_float, n) op3 = gr.vector_to_stream_comp(gr.sizeof_float, n) dst = gr.vector_sink_f() self.tb.connect(src, op1) for i in range(n): self.tb.connect((op1, i), (op2, i)) self.tb.connect(op2, op3, dst) self.tb.run() self.assertEqual(expected_results, dst.data())