diff options
Diffstat (limited to 'gr-howto-write-a-block')
-rwxr-xr-x | gr-howto-write-a-block/doc/qa_howto_1.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gr-howto-write-a-block/doc/qa_howto_1.py b/gr-howto-write-a-block/doc/qa_howto_1.py index aa84908d4..3173110f8 100755 --- a/gr-howto-write-a-block/doc/qa_howto_1.py +++ b/gr-howto-write-a-block/doc/qa_howto_1.py @@ -6,10 +6,10 @@ import howto class qa_howto (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_001_square_ff (self): src_data = (-3, 4, -5.5, 2, 3) @@ -17,9 +17,9 @@ class qa_howto (gr_unittest.TestCase): src = gr.vector_source_f (src_data) sqr = howto.square_ff () dst = gr.vector_sink_f () - self.fg.connect (src, sqr) - self.fg.connect (sqr, dst) - self.fg.run () + self.tb.connect (src, sqr) + self.tb.connect (sqr, dst) + self.tb.run () result_data = dst.data () self.assertFloatTuplesAlmostEqual (expected_result, result_data, 6) |