Mercurial > hg > vampy-host
diff test/test_metadata.py @ 79:650f0697812f
naming: vampyhost module methods snake_case
author | Chris Cannam |
---|---|
date | Wed, 21 Jan 2015 12:28:16 +0000 |
parents | b56513f872a5 |
children | a11b57e9fb0b |
line wrap: on
line diff
--- a/test/test_metadata.py Wed Jan 21 12:23:34 2015 +0000 +++ b/test/test_metadata.py Wed Jan 21 12:28:16 2015 +0000 @@ -6,23 +6,23 @@ ##!!! could use: plugin version def test_list(): - plugins = vh.listPlugins() + plugins = vh.list_plugins() if testPluginKey not in plugins: print("Test plugin " + testPluginKey + " not installed or not returned by enumerate: can't run any tests without it") assert testPluginKey in plugins def test_path(): - path = vh.getPluginPath() + path = vh.get_plugin_path() assert len(path) > 0 def test_getlibrary(): - lib = vh.getLibraryFor(testPluginKey) + lib = vh.get_library_for(testPluginKey) assert lib.find("vamp-test-plugin") >= 0 try: - lib = vh.getLibraryFor("not a well-formatted plugin key") + lib = vh.get_library_for("not a well-formatted plugin key") assert False except TypeError: pass - lib = vh.getLibraryFor("nonexistent-library:nonexistent-plugin") + lib = vh.get_library_for("nonexistent-library:nonexistent-plugin") assert lib == ""