I have written a gnuradio block with 1 input and 2 outputs. Now I'm writing the qa_test in python. the code below is to test a block with 1 input and 1 output. How can I adapt the code to test two outputs of different types (complex and float)
src_data = (0, 1, -2, 5.5, -0.5)
expected_result = (0, 2, -4, 11, -1)
src = blocks.vector_source_f (src_data)
mult = multiply_py_ff (2)
snk = blocks.vector_sink_f ()
self.tb.connect (src, mult)
self.tb.connect (mult, snk)
self.tb.run ()
result_data = snk.data ()
self.assertFloatTuplesAlmostEqual (expected_result, result_data, 6)