Imported Upstream version 3.2.2
[debian/gnuradio] / gnuradio-core / src / python / gnuradio / gr / qa_cma_equalizer.py
index 6b3e9aa9e378118f822331b1ca86b7aa41292e68..b1ab8f546a20c4eca925c4cf822efa0b06236ee1 100755 (executable)
@@ -1,21 +1,41 @@
 #!/usr/bin/env python
+#
+# Copyright 2006,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 3, or (at your option)
+# any later version.
+# 
+# GNU Radio is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with GNU Radio; see the file COPYING.  If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street,
+# Boston, MA 02110-1301, USA.
+# 
 
 from gnuradio import gr, gr_unittest
 
 class test_cma_equalizer_fir(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 transform(self, src_data):
        SRC = gr.vector_source_c(src_data, False)
        EQU = gr.cma_equalizer_cc(4, 1.0, .001)
        DST = gr.vector_sink_c()
-       self.fg.connect(SRC, EQU, DST)
-       self.fg.run()
+       self.tb.connect(SRC, EQU, DST)
+       self.tb.run()
        return DST.data()
 
     def test_001_identity(self):