Imported Upstream version 3.2.2
[debian/gnuradio] / gnuradio-core / src / python / gnuradio / gr / qa_fsk_stuff.py
index 22309df37cef4570ea3de6b57f7e91187f109a6f..b506e3ed4127c4cbab0027bf7b4cfa9c331ae7e0 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,
@@ -29,10 +29,10 @@ def sincos(x):
 class test_bytes_to_syms (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_bytes_to_syms_001 (self):
         src_data = (0x01, 0x80, 0x03)
@@ -42,9 +42,9 @@ class test_bytes_to_syms (gr_unittest.TestCase):
         src = gr.vector_source_b (src_data)
         op = gr.bytes_to_syms ()
         dst = gr.vector_sink_f ()
-        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.assertEqual (expected_result, result_data)
 
@@ -63,9 +63,9 @@ class test_bytes_to_syms (gr_unittest.TestCase):
         src = gr.vector_source_b (src_data)
         op = gr.simple_framer (4)
         dst = gr.vector_sink_b ()
-        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.assertEqual (expected_result, result_data)