summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gr-utils/python/modtool/templates.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/gr-utils/python/modtool/templates.py b/gr-utils/python/modtool/templates.py
index c88d3d7ea6..6586830d82 100644
--- a/gr-utils/python/modtool/templates.py
+++ b/gr-utils/python/modtool/templates.py
@@ -494,22 +494,22 @@ ${str_to_python_comment($license)}
from gnuradio import gr, gr_unittest
from gnuradio import blocks
#if $lang == 'cpp'
-import ${modname}_swig as ${modname}
+import ${modname}.${modname}_swig as ${modname}
#else
from ${blockname} import ${blockname}
#end if
-class qa_$blockname (gr_unittest.TestCase):
- def setUp (self):
- self.tb = gr.top_block ()
+class qa_${blockname}(gr_unittest.TestCase):
+ def setUp(self):
+ self.tb = gr.top_block()
- def tearDown (self):
+ def tearDown(self):
self.tb = None
- def test_001_t (self):
+ def test_001_t(self):
# set up fg
- self.tb.run ()
+ self.tb.run()
# check data