summaryrefslogtreecommitdiffstats
path: root/robotframework-onap/tests/vcpeutils/SoUtils_test.py
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2019-05-06 04:06:36 +0000
committerGerrit Code Review <gerrit@onap.org>2019-05-06 04:06:36 +0000
commit72584d1ed32f4936c49b80a1278d5af19c2a0dad (patch)
tree0469d57bafab5a6a872815e4f605bf0dd1af0300 /robotframework-onap/tests/vcpeutils/SoUtils_test.py
parent1a18e91083fdd58ea528513fdf85db678deeb0c7 (diff)
parent158df8f73cb2988031cd408939681d3ade443b2f (diff)
Merge "fix vcpeutils"
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)