From 221d838fa6140b2799aa54feb7b136b38c2ca0f4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 17 Feb 2020 13:16:24 +0100 Subject: Support checking if Python objects with URIs are in a Nodes --- bindings/test/python/test_api.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'bindings/test/python') 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( -- cgit v1.2.1