3 from numpy.testing import TestCase
4 from aubio import window
6 class aubio_window(TestCase):
8 def test_accept_name_and_size(self):
9 window("default", 1024)
11 def test_fail_name_not_string(self):
17 self.fail('non-string window type does not raise a ValueError')
19 def test_fail_size_not_int(self):
21 window("default", "default")
25 self.fail('non-integer window length does not raise a ValueError')
27 if __name__ == '__main__':
28 from unittest import main