diff options
author | Christopher Arndt <chris@chrisarndt.de> | 2019-10-16 13:53:09 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-02-17 14:34:45 +0100 |
commit | db0376206ca92c402f0d4f8d20c96307c41a7d02 (patch) | |
tree | ebb538e652ae8c3b58ad53613becd461789a45b6 /bindings/test | |
parent | abfa2ce02fdd482de5ac21abce101c1327cc7d17 (diff) | |
download | lilv-db0376206ca92c402f0d4f8d20c96307c41a7d02.tar.gz lilv-db0376206ca92c402f0d4f8d20c96307c41a7d02.tar.bz2 lilv-db0376206ca92c402f0d4f8d20c96307c41a7d02.zip |
Add __add__ magic method to Python Namespace class
This allows creating URIs from a Namespace instance by adding a suffix.
Diffstat (limited to 'bindings/test')
-rw-r--r-- | bindings/test/python/test_api.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bindings/test/python/test_api.py b/bindings/test/python/test_api.py index 62ab6c2..8d3a94a 100644 --- a/bindings/test/python/test_api.py +++ b/bindings/test/python/test_api.py @@ -391,6 +391,9 @@ class QueryTests(unittest.TestCase): self.assertEqual( self.world.ns.lv2.Plugin, "http://lv2plug.in/ns/lv2core#Plugin" ) + self.assertEqual( + self.world.ns.lv2 + "Plugin", "http://lv2plug.in/ns/lv2core#Plugin" + ) def testQuery(self): self.assertTrue( |