diff test_plugin_metadata.py @ 36:20a9fcbc2f5f

More on tests, remove debug output
author Chris Cannam
date Wed, 26 Nov 2014 13:52:15 +0000
parents
children 13dcfe8c7ed7
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test_plugin_metadata.py	Wed Nov 26 13:52:15 2014 +0000
@@ -0,0 +1,20 @@
+
+import vampyhost as vh
+
+testPluginKey = "vamp-test-plugin:vamp-test-plugin"
+
+rate = 44100
+
+def test_inputdomain():
+    plug = vh.loadPlugin(testPluginKey, rate)
+    assert(plug.inputDomain == vh.TimeDomain)
+
+def test_info():
+    plug = vh.loadPlugin(testPluginKey, rate)
+    assert(plug.info["identifier"] == "vamp-test-plugin")
+    
+def test_parameterdescriptors():
+    plug = vh.loadPlugin(testPluginKey, rate)
+    assert(plug.parameters[0]["identifier"] == "produce_output")
+
+