comparison test_process.py @ 19:fe83d6d78429

More tests
author Chris Cannam
date Tue, 25 Nov 2014 10:10:49 +0000
parents
children 8e5cefa70c99
comparison
equal deleted inserted replaced
18:4b9adb4b532f 19:fe83d6d78429
1
2 import vampyhost as vh
3
4 testPluginKey = "vamp-test-plugin:vamp-test-plugin"
5
6 rate = 44100
7
8 def test_load_unload():
9 plug = vh.loadPlugin(testPluginKey, rate)
10 vh.unloadPlugin(plug)
11 try:
12 vh.unloadPlugin(plug) # should throw but not crash
13 assert(False)
14 except AttributeError:
15 pass
16
17 def test_process_without_initialise():
18 plug = vh.loadPlugin(testPluginKey, rate)
19 try:
20 vh.process(plug, [[1,2,3,4]], vh.RealTime(0, 0))
21 assert(False)
22 except StandardError:
23 pass
24
25