def test_time_series_upsampling(rrddata, twindow, shift, upsampled): ts = prediction.TimeSeries(rrddata) assert ts.bfill_upsample(twindow, shift) == upsampled
def test_time_series_downsampling(rrddata, twindow, cf, downsampled): ts = prediction.TimeSeries(rrddata) assert ts.downsample(twindow, cf) == downsampled