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 | rolloff = i | 232 | rolloff = i |
| 233 | assert_equal (rolloff, o(c)) | 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 | if __name__ == '__main__': | 245 | if __name__ == '__main__': |
| 237 | from unittest import main | 246 | from unittest import main |