def test_peak_finder():
 x = [0, 2, 5, 0, 6, (-1)]
 (peak_inds, peak_mags) = peak_finder(x)
 assert_array_equal(peak_inds, [2, 4])

def test_peak_finder ( ) : x = [ 0 , 2 , 5 , 0 , 6 , ( - 1 ) ] ( peak_inds , peak_mags ) = peak_finder ( x ) assert_array_equal ( peak_inds , [ 2 , 4 ] )
test the peak detection method .