def test_and_const_ss(self):
     src_data = [1, 2, 3, 0x5004, 0x1150]
     expected_result = [0, 2, 2, 0x5000, 0x1100]
     src = blocks.vector_source_s(src_data)
     op = blocks.and_const_ss(0x55AA)
     dst = blocks.vector_sink_s()
     self.tb.connect(src, op, dst)
     self.tb.run()
     self.assertEqual(dst.data(), expected_result)
 def test_and_const_ss (self):
     src_data =        (1,  2,  3,  0x5004,   0x1150)
     expected_result = (0,  2,  2,  0x5000,   0x1100)
     src = blocks.vector_source_s(src_data)
     op = blocks.and_const_ss (0x55AA)
     dst = blocks.vector_sink_s()
     self.tb.connect(src, op, dst)
     self.tb.run()
     self.assertEqual(dst.data(), expected_result)