X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gnuradio-core%2Fsrc%2Fpython%2Fgnuradio%2Fgr%2Fqa_head.py;h=b7a60597b218def0e142fbb898800c3c9b1f7916;hb=ea29b08aeb54227e6628f655ccfdb96fe4d8c378;hp=aae8328f3779918338e774ef62814f18256d515d;hpb=09a1e803a9e6587c78d20cdf16891e5295874668;p=debian%2Fgnuradio diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_head.py b/gnuradio-core/src/python/gnuradio/gr/qa_head.py index aae8328f..b7a60597 100755 --- a/gnuradio-core/src/python/gnuradio/gr/qa_head.py +++ b/gnuradio-core/src/python/gnuradio/gr/qa_head.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2004 Free Software Foundation, Inc. +# Copyright 2004,2007 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -25,10 +25,10 @@ from gnuradio import gr, gr_unittest class test_head (gr_unittest.TestCase): def setUp (self): - self.fg = gr.flow_graph () + self.tb = gr.top_block () def tearDown (self): - self.fg = None + self.tb = None def test_head (self): src_data = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) @@ -36,9 +36,9 @@ class test_head (gr_unittest.TestCase): src1 = gr.vector_source_i (src_data) op = gr.head (gr.sizeof_int, 4) dst1 = gr.vector_sink_i () - self.fg.connect (src1, op) - self.fg.connect (op, dst1) - self.fg.run () + self.tb.connect (src1, op) + self.tb.connect (op, dst1) + self.tb.run () dst_data = dst1.data () self.assertEqual (expected_result, dst_data)