Imported Upstream version 3.2.2
[debian/gnuradio] / gnuradio-core / src / python / gnuradio / gr / qa_frequency_modulator.py
index b457ef91be201db280b2d083c19a7b2236dba54c..53d1a89ba19b24495af0dfc322cb69de6e5ff0e2 100755 (executable)
@@ -1,12 +1,12 @@
 #!/usr/bin/env python
 #
-# Copyright 2004 Free Software Foundation, Inc.
+# Copyright 2004,2007 Free Software Foundation, Inc.
 # 
 # This file is part of GNU Radio
 # 
 # GNU Radio is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
+# the Free Software Foundation; either version 3, or (at your option)
 # any later version.
 # 
 # GNU Radio is distributed in the hope that it will be useful,
@@ -30,10 +30,10 @@ def sincos(x):
 class test_frequency_modulator (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_fm_001 (self):
         pi = math.pi
@@ -44,9 +44,9 @@ class test_frequency_modulator (gr_unittest.TestCase):
         src = gr.vector_source_f (src_data)
         op = gr.frequency_modulator_fc (sensitivity)
         dst = gr.vector_sink_c ()
-        self.fg.connect (src, op)
-        self.fg.connect (op, dst)
-        self.fg.run ()
+        self.tb.connect (src, op)
+        self.tb.connect (op, dst)
+        self.tb.run ()
         result_data = dst.data ()
         self.assertComplexTuplesAlmostEqual (expected_result, result_data)