diff options
Diffstat (limited to 'gr-utils/python/modtool/templates.py')
-rw-r--r-- | gr-utils/python/modtool/templates.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gr-utils/python/modtool/templates.py b/gr-utils/python/modtool/templates.py index 64c99802fe..10ee4a4e6c 100644 --- a/gr-utils/python/modtool/templates.py +++ b/gr-utils/python/modtool/templates.py @@ -505,22 +505,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} % endif -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 |