diff options
author | Thomas Duval <thomas.duval@orange.com> | 2018-03-14 11:25:06 +0100 |
---|---|---|
committer | Thomas Duval <thomas.duval@orange.com> | 2018-03-15 10:47:03 +0100 |
commit | d425d4edf13ed389cd34113bd9fd78eaa0a08c20 (patch) | |
tree | 1ecfdf8a7f97f71748cf31e0ef45518997672993 /moon_manager/tests/unit_python/api/test_data.py | |
parent | acb811aafc97d60cdcc71e0b9b2466fb00bfb097 (diff) |
Fix bugs due to the modification of python_moondb
Change-Id: Id3855a6e8da9f8ef942c7a34a3e8da4f87be4c9e
Diffstat (limited to 'moon_manager/tests/unit_python/api/test_data.py')
-rw-r--r-- | moon_manager/tests/unit_python/api/test_data.py | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/moon_manager/tests/unit_python/api/test_data.py b/moon_manager/tests/unit_python/api/test_data.py index f636aaa5..724f919f 100644 --- a/moon_manager/tests/unit_python/api/test_data.py +++ b/moon_manager/tests/unit_python/api/test_data.py @@ -1,3 +1,8 @@ +# Copyright 2018 Open Platform for NFV Project, Inc. and its contributors +# This software is distributed under the terms and conditions of the 'Apache-2.0' +# license which can be found in the file 'LICENSE' in this package distribution +# or at 'http://www.apache.org/licenses/LICENSE-2.0'. + import api.utilities as utilities import json @@ -106,8 +111,12 @@ def test_add_object_data(): value = object_data["object_data"]['data'] assert "object_data" in object_data id = list(value.keys())[0] - assert value[id]['value']['name'] == "testuser" - assert value[id]['value']['description'] == "description of {}".format("testuser") + print("-----------------------") + print(id) + print(value[id]) + print("-----------------------") + assert value[id]['name'] == "testuser" + assert value[id]['description'] == "description of {}".format("testuser") def test_delete_object_data(): @@ -164,8 +173,8 @@ def test_add_action_data(): value = action_data["action_data"]['data'] assert "action_data" in action_data id = list(value.keys())[0] - assert value[id]['value']['name'] == "testuser" - assert value[id]['value']['description'] == "description of {}".format("testuser") + assert value[id]['name'] == "testuser" + assert value[id]['description'] == "description of {}".format("testuser") def test_delete_action_data(): |