From: Paul Brossier Date: Sun, 3 Mar 2013 19:56:26 +0000 (-0500) Subject: tests/python/src/temporal/filter.py: replaced by python/tests/test_filter.py X-Git-Tag: 0.4.0-beta1~270 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=8ee26a80fa4fb9c32030cc3ddc1e67a5e9701d29;p=aubio.git tests/python/src/temporal/filter.py: replaced by python/tests/test_filter.py --- diff --git a/tests/python/src/temporal/filter.py b/tests/python/src/temporal/filter.py deleted file mode 100644 index be108b65..00000000 --- a/tests/python/src/temporal/filter.py +++ /dev/null @@ -1,30 +0,0 @@ -from template import aubio_unit_template -from localaubio import * - -samplerate = 44100 -buf_size = 1024 -channels = 2 - -class filter_unit(aubio_unit_template): - - def setUp(self): - self.o = new_aubio_filter(samplerate, 8, channels) - - def tearDown(self): - del_aubio_filter(self.o) - - def test_creation(self): - """ check filter creation and deletion """ - pass - - def test_filter_zeroes(self): - """ check filter run on a vector full of zeroes returns zeros """ - vec = new_fvec(buf_size, channels) - aubio_filter_do(self.o, vec) - for index in range(buf_size/2+1): - for channel in range(channels): - self.assertEqual(fvec_read_sample(vec,channel,index),0.) - del_fvec(vec) - -if __name__ == '__main__': - unittest.main()