def METHOD_NAME(self):
    # Cause 8 bit errors out of 8*N bits
    # using test mode
    mode = True
    N = 1000
    data0 = numpy.random.randint(0, 256, N).tolist()
    data1 = copy.deepcopy(data0)
    data1[0] ^= 0xFF
    src0 = blocks.vector_source_b(data0)
    src1 = blocks.vector_source_b(data1)
    op = fec.ber_bf(mode, 1, -2.0)
    dst = blocks.vector_sink_f()
    self.tb.connect(src0, (op, 0))
    self.tb.connect(src1, (op, 1))
    self.tb.connect(op, dst)
    self.tb.run()
    data = dst.data()
    expected_result = self.log_ber(8., N)
    self.assertFloatTuplesAlmostEqual(expected_result, data, 5)