diff options
author | David Robillard <d@drobilla.net> | 2020-02-17 13:41:26 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-02-17 13:41:26 +0100 |
commit | 941a6ffaebeeb98bf570bdb092da253d140b4911 (patch) | |
tree | b500f2b928d266b1dbf0b9433016e358c901ba13 /bindings/test | |
parent | 221d838fa6140b2799aa54feb7b136b38c2ca0f4 (diff) | |
download | lilv-941a6ffaebeeb98bf570bdb092da253d140b4911.tar.gz lilv-941a6ffaebeeb98bf570bdb092da253d140b4911.tar.bz2 lilv-941a6ffaebeeb98bf570bdb092da253d140b4911.zip |
Add positive Python test for get_port_by_designation()
Diffstat (limited to 'bindings/test')
-rw-r--r-- | bindings/test/bindings_test_plugin.ttl.in | 1 | ||||
-rw-r--r-- | bindings/test/python/test_api.py | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/bindings/test/bindings_test_plugin.ttl.in b/bindings/test/bindings_test_plugin.ttl.in index 1600283..2430831 100644 --- a/bindings/test/bindings_test_plugin.ttl.in +++ b/bindings/test/bindings_test_plugin.ttl.in @@ -41,6 +41,7 @@ a lv2:OutputPort , lv2:ControlPort ; lv2:index 1 ; + lv2:designation <http://lv2plug.in/ns/ext/parameters#amplitude> ; lv2:symbol "output" ; lv2:name "Output" ] , [ diff --git a/bindings/test/python/test_api.py b/bindings/test/python/test_api.py index 4b32f07..919fee6 100644 --- a/bindings/test/python/test_api.py +++ b/bindings/test/python/test_api.py @@ -241,6 +241,11 @@ class PluginTests(unittest.TestCase): self.world.ns.lv2.InputPort, self.world.ns.lv2.control ) ) + self.assertIsNotNone( + self.plugin.get_port_by_designation( + self.lv2_OutputPort, self.params_amplitude + ) + ) self.assertIsNone(self.plugin.get_project()) self.assertIsNone(self.plugin.get_author_name()) self.assertIsNone(self.plugin.get_author_email()) |