def METHOD_NAME(clear_sky_index, time,
                                   expect_tmscale, expect_wavelet):
    # Confirm detail coeffs sum to original signal
    csi_series = pd.Series(clear_sky_index, index=time)
    wavelet, tmscale = scaling._compute_wavelet(csi_series)
    assert_almost_equal(np.sum(wavelet, 0), csi_series)