ref: aba027955f6ee703262f7bab2c90f46efb8d9352
parent: 2f4d9b70b4e49a7bf41139abb4f09fbf4158a58b
author: Paul Brossier <piem@piem.org>
date: Sat May 14 01:28:58 EDT 2016
python/tests/test_specdesc.py: check for wrong values
--- a/python/tests/test_specdesc.py
+++ b/python/tests/test_specdesc.py
@@ -232,6 +232,15 @@
rolloff = i
assert_equal (rolloff, o(c))
+class aubio_specdesc_wrong(TestCase):
+
+ def test_negative(self):
+ with self.assertRaises(ValueError):
+ o = specdesc("default", -10)
+
+ def test_unknown(self):
+ # FIXME should fail?
+ o = specdesc("unknown", 512)
if __name__ == '__main__':
from unittest import main