From 3031ccf238326cca8af4b368cbb59ed1462ac7e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20M=C3=B6ller?= Date: Sat, 16 Dec 2023 01:37:56 +0100 Subject: [PATCH] examples.tutorial_storage: fix assertion Previously this simply duplicated the previous assertion used to check the result of `obj_store.get_identifiable()`. Fix #186 --- basyx/aas/examples/tutorial_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basyx/aas/examples/tutorial_storage.py b/basyx/aas/examples/tutorial_storage.py index 98ef7781d..82f5bc1e5 100755 --- a/basyx/aas/examples/tutorial_storage.py +++ b/basyx/aas/examples/tutorial_storage.py @@ -97,7 +97,7 @@ for reference in aas.submodel] # The first (and only) element of this list should be our example submodel: -assert submodel is tmp_submodel +assert submodel is submodels[0] # Now, let's manually create a reference to the Property within the submodel. The reference uses two keys, the first one # identifying the submodel by its id, the second one resolving to the Property within the submodel by its