From 72ce7aca88a07eebe6c754363ee323a76abe2402 Mon Sep 17 00:00:00 2001
From: Alexander Schlemmer <a.schlemmer@indiscale.com>
Date: Wed, 22 May 2024 14:42:58 +0200
Subject: [PATCH] TST: added a test of a duplicated property

---
 unittests/test_sync_node.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/unittests/test_sync_node.py b/unittests/test_sync_node.py
index 131868dc..171af8fc 100644
--- a/unittests/test_sync_node.py
+++ b/unittests/test_sync_node.py
@@ -117,6 +117,11 @@ def test_sync_node():
         assert p in sn_a.parents
     for p in rec_a.properties + rec_b.properties:
         assert p in sn_a.properties
+    # Check for duplicated property:
+    ps = [p for p in sn_a.properties if p.name == "a"]
+    assert len(ps) == 2
+    assert ps[0].value == "a"
+    assert ps[1].value == "a"
 
     # test information in exported entity
     export = sn_a.export_entity()
-- 
GitLab