summaryrefslogtreecommitdiff
path: root/gr-blocks/python/blocks/qa_mute.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/python/blocks/qa_mute.py')
-rw-r--r--gr-blocks/python/blocks/qa_mute.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/gr-blocks/python/blocks/qa_mute.py b/gr-blocks/python/blocks/qa_mute.py
index ae789f1a13..e5aaf76798 100644
--- a/gr-blocks/python/blocks/qa_mute.py
+++ b/gr-blocks/python/blocks/qa_mute.py
@@ -11,6 +11,7 @@
from gnuradio import gr, gr_unittest, blocks
+
class test_mute(gr_unittest.TestCase):
def setUp(self):
@@ -62,16 +63,17 @@ class test_mute(gr_unittest.TestCase):
self.help_ii((src_data,), expected_result, op)
def test_unmute_cc(self):
- src_data = [1+5j, 2+5j, 3+5j, 4+5j, 5+5j]
- expected_result = [1+5j, 2+5j, 3+5j, 4+5j, 5+5j]
+ src_data = [1 + 5j, 2 + 5j, 3 + 5j, 4 + 5j, 5 + 5j]
+ expected_result = [1 + 5j, 2 + 5j, 3 + 5j, 4 + 5j, 5 + 5j]
op = blocks.mute_cc(False)
self.help_cc((src_data,), expected_result, op)
def test_unmute_cc(self):
- src_data = [1+5j, 2+5j, 3+5j, 4+5j, 5+5j]
- expected_result =[0+0j, 0+0j, 0+0j, 0+0j, 0+0j]
+ src_data = [1 + 5j, 2 + 5j, 3 + 5j, 4 + 5j, 5 + 5j]
+ expected_result = [0 + 0j, 0 + 0j, 0 + 0j, 0 + 0j, 0 + 0j]
op = blocks.mute_cc(True)
self.help_cc((src_data,), expected_result, op)
+
if __name__ == '__main__':
gr_unittest.run(test_mute)