diff test_metadata.py @ 39:13dcfe8c7ed7

Docs and tidying
author Chris Cannam
date Wed, 26 Nov 2014 15:23:56 +0000
parents fe83d6d78429
children 36cc53aad853
line wrap: on
line diff
--- a/test_metadata.py	Wed Nov 26 14:27:56 2014 +0000
+++ b/test_metadata.py	Wed Nov 26 15:23:56 2014 +0000
@@ -17,7 +17,14 @@
 
 def test_getlibrary():
     lib = vh.getLibraryFor(testPluginKey)
-    assert lib != ""
+    assert lib.find("vamp-test-plugin") >= 0
+    try:
+        lib = vh.getLibraryFor("not a well-formatted plugin key")
+        assert False
+    except TypeError:
+        pass
+    lib = vh.getLibraryFor("nonexistent-library:nonexistent-plugin")
+    assert lib == ""
 
 def test_getoutputlist():
     outputs = vh.getOutputsOf(testPluginKey)