python/tests/test_pitchshift.py: make sure a wrong transpose raises RuntimeError
authorPaul Brossier <piem@piem.org>
Wed, 21 Sep 2016 14:00:03 +0000 (16:00 +0200)
committerPaul Brossier <piem@piem.org>
Wed, 21 Sep 2016 14:00:03 +0000 (16:00 +0200)
python/tests/test_pitchshift.py

index 2db9d4d..8b5af4e 100755 (executable)
@@ -60,6 +60,11 @@ class aubio_pitchshift(TestCase):
         with self.assertRaises(ValueError):
             self.o.set_transpose(-24.3)
 
+class aubio_pitchshift_wrong_params(TestCase):
+
+    def test_wrong_transpose(self):
+        with self.assertRaises(RuntimeError):
+            aubio.pitchshift("default", -123)
 
 class aubio_pitchshift_testruns(TestCase):