summaryrefslogtreecommitdiffstats
path: root/robotframework-onap/tests/vcpeutils/SoUtils_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'robotframework-onap/tests/vcpeutils/SoUtils_test.py')
-rw-r--r--robotframework-onap/tests/vcpeutils/SoUtils_test.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/robotframework-onap/tests/vcpeutils/SoUtils_test.py b/robotframework-onap/tests/vcpeutils/SoUtils_test.py
new file mode 100644
index 0000000..22afed6
--- /dev/null
+++ b/robotframework-onap/tests/vcpeutils/SoUtils_test.py
@@ -0,0 +1,14 @@
+from unittest import TestCase
+
+
+from vcpeutils.SoUtils import *
+
+
+class SoUtilsTest(TestCase):
+
+ def test(self):
+ input_dict = dict()
+ SoUtils.add_related_instance(input_dict, "test", "test2")
+ results = dict()
+ results['relatedInstanceList'] = [{"relatedInstance": {"instanceId": "test", "modelInfo": "test2"}}]
+ self.assertDictContainsSubset(results, input_dict)