projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2f4d9b7
)
python/tests/test_specdesc.py: check for wrong values
author
Paul Brossier
<piem@piem.org>
Sat, 14 May 2016 03:28:58 +0000
(
05:28
+0200)
committer
Paul Brossier
<piem@piem.org>
Sat, 14 May 2016 03:28:58 +0000
(
05:28
+0200)
python/tests/test_specdesc.py
patch
|
blob
|
history
diff --git
a/python/tests/test_specdesc.py
b/python/tests/test_specdesc.py
index
6462eb9
..
c365f83
100755
(executable)
--- a/
python/tests/test_specdesc.py
+++ b/
python/tests/test_specdesc.py
@@
-232,6
+232,15
@@
class aubio_specdesc(TestCase):
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