From e7591a042ba504bf5ec6a565f80505e5ea45e7af Mon Sep 17 00:00:00 2001
From: Gilad Beeri <giladb.dev@gmail.com>
Date: Wed, 20 Jun 2018 10:33:13 +0300
Subject: tests: fixed python template - import error and style

---
 gr-utils/python/modtool/templates.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

(limited to 'gr-utils/python/modtool/templates.py')

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
 
 
-- 
cgit v1.2.3