summaryrefslogtreecommitdiffstats
path: root/bindings/test
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/test')
-rw-r--r--bindings/test/python/test_api.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/bindings/test/python/test_api.py b/bindings/test/python/test_api.py
index aa6545a..4b32f07 100644
--- a/bindings/test/python/test_api.py
+++ b/bindings/test/python/test_api.py
@@ -341,14 +341,13 @@ class QueryTests(unittest.TestCase):
None, self.world.ns.rdf.type, self.world.ns.lv2.Plugin
)
)
- self.assertLess(
- 0,
- len(
- self.world.find_nodes(
- None, self.world.ns.rdf.type, self.world.ns.lv2.Plugin
- )
- ),
+ plugin_nodes = self.world.find_nodes(
+ None, self.world.ns.rdf.type, self.world.ns.lv2.Plugin
)
+
+ self.assertLess(0, len(plugin_nodes))
+ self.assertTrue(self.plugins[0] in plugin_nodes)
+
self.assertEqual(
self.plugin.get_uri(),
self.world.get(