X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gnuradio-core%2Fsrc%2Fpython%2Fgnuradio%2Fgr%2Fqa_pll_refout.py;h=c40a885a8621b1162fc993838a1f4250cebb501d;hb=2104a9d1b2c964ec0f710f3209bb4a63cc7ae548;hp=16bef320a31f9554208a0111d4d2f5b8a1f196f3;hpb=937b719d2e57d0497293d603da10cac2532346f6;p=debian%2Fgnuradio diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_pll_refout.py b/gnuradio-core/src/python/gnuradio/gr/qa_pll_refout.py index 16bef320..c40a885a 100755 --- a/gnuradio-core/src/python/gnuradio/gr/qa_pll_refout.py +++ b/gnuradio-core/src/python/gnuradio/gr/qa_pll_refout.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2004 Free Software Foundation, Inc. +# Copyright 2004,2010 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -23,13 +23,13 @@ from gnuradio import gr, gr_unittest import math -class test_sig_source (gr_unittest.TestCase): +class test_pll_refout (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_pll_refout (self): expected_result = ((1+7.39965699825e-10j), @@ -146,13 +146,13 @@ class test_sig_source (gr_unittest.TestCase): head = gr.head (gr.sizeof_gr_complex, int (freq)) dst = gr.vector_sink_c () - self.fg.connect (src, pll, head) - self.fg.connect (head, dst) + self.tb.connect (src, pll, head) + self.tb.connect (head, dst) - self.fg.run () + self.tb.run () dst_data = dst.data () self.assertComplexTuplesAlmostEqual (expected_result, dst_data, 5) if __name__ == '__main__': - gr_unittest.main () + gr_unittest.run(test_pll_refout, "test_pll_refout.xml")