Mercurial > hg > vampy-host
comparison test_metadata.py @ 39:13dcfe8c7ed7
Docs and tidying
author | Chris Cannam |
---|---|
date | Wed, 26 Nov 2014 15:23:56 +0000 |
parents | fe83d6d78429 |
children | 36cc53aad853 |
comparison
equal
deleted
inserted
replaced
38:e881d77da368 | 39:13dcfe8c7ed7 |
---|---|
15 path = vh.getPluginPath() | 15 path = vh.getPluginPath() |
16 assert len(path) > 0 | 16 assert len(path) > 0 |
17 | 17 |
18 def test_getlibrary(): | 18 def test_getlibrary(): |
19 lib = vh.getLibraryFor(testPluginKey) | 19 lib = vh.getLibraryFor(testPluginKey) |
20 assert lib != "" | 20 assert lib.find("vamp-test-plugin") >= 0 |
21 try: | |
22 lib = vh.getLibraryFor("not a well-formatted plugin key") | |
23 assert False | |
24 except TypeError: | |
25 pass | |
26 lib = vh.getLibraryFor("nonexistent-library:nonexistent-plugin") | |
27 assert lib == "" | |
21 | 28 |
22 def test_getoutputlist(): | 29 def test_getoutputlist(): |
23 outputs = vh.getOutputsOf(testPluginKey) | 30 outputs = vh.getOutputsOf(testPluginKey) |
24 assert len(outputs) == 8 | 31 assert len(outputs) == 8 |
25 assert "curve-vsr" in outputs | 32 assert "curve-vsr" in outputs |