Imported Upstream version 3.2.2
[debian/gnuradio] / gnuradio-core / src / python / gnuradio / gr / qa_nlog10.py
index 7ea44bbe46bb0fd29b17b5e3740896d5f710f008..4dca67b22862be75f500197e930f577ef310d1b1 100755 (executable)
@@ -1,12 +1,12 @@
 #!/usr/bin/env python
 #
-# Copyright 2005 Free Software Foundation, Inc.
+# Copyright 2005,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,
@@ -25,10 +25,10 @@ from gnuradio import gr, gr_unittest
 class test_single_pole_iir(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(self):
         src_data = (-10, 0, 10, 100, 1000, 10000, 100000)
@@ -36,8 +36,8 @@ class test_single_pole_iir(gr_unittest.TestCase):
         src = gr.vector_source_f(src_data)
         op = gr.nlog10_ff(10)
         dst = gr.vector_sink_f()
-        self.fg.connect (src, op, dst)
-        self.fg.run()
+        self.tb.connect (src, op, dst)
+        self.tb.run()
         result_data = dst.data()
         self.assertFloatTuplesAlmostEqual (expected_result, result_data)