summaryrefslogtreecommitdiffstats
path: root/robotframework-onap/tests/vcpeutils/SoUtils_test.py
blob: 22afed609b8b90eb33d8cc43181a06b3de3db6ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)