def test_resampler_resample(period, expected):
    resampler = Resampler(period=period)
    resampler.fit(signal_array)
    assert_almost_equal(resampler.resample(signal_array), expected)
def test_resampler_errors():
    resampler = Resampler(period='blah')
    with pytest.raises(TypeError):
        resampler.fit(signal_array)