def METHOD_NAME(self):
    # print "\n\nTEST 4"
    tb = self.tb
    l = 8100
    m = 100
    n = 10
    data = l * [0, ] + [10, ] + m * [0, ] + [100, ] + n * [0, ]
    expected_result = l * [0, ] + [0, ] + m * [0, ] + [1, ] + n * [0, ]
    src = blocks.vector_source_f(data, False)
    regen = blocks.peak_detector2_fb(7.0, 150, 0.001)
    dst = blocks.vector_sink_b()
    tb.connect(src, regen)
    tb.connect(regen, dst)
    tb.run()
    dst_data = dst.data()
    # here we know that the block will terminate prematurely, so we compare
    # only part of the expected_result
    self.assertEqual(expected_result[0:len(dst_data)], dst_data)