Showing the changes to python/tests (1 of 1 file). Show all
Unified · Split
| @@ -232,6 +232,15 @@ class aubio_specdesc(TestCase): · 231 unmodified lines | ||
| 232 | 232 | rolloff = i |
| 233 | 233 | assert_equal (rolloff, o(c)) |
| 234 | 234 | |
| 235 | +class aubio_specdesc_wrong(TestCase): | |
| 236 | + | |
| 237 | + def test_negative(self): | |
| 238 | + with self.assertRaises(ValueError): | |
| 239 | + o = specdesc("default", -10) | |
| 240 | + | |
| 241 | + def test_unknown(self): | |
| 242 | + # FIXME should fail? | |
| 243 | + o = specdesc("unknown", 512) | |
| 235 | 244 | |
| 236 | 245 | if __name__ == '__main__': |
| 237 | 246 | from unittest import main |