diff options
author | sgdt6900 <rhanafy.ext@orange.com> | 2018-01-02 17:43:23 +0200 |
---|---|---|
committer | sgdt6900 <rhanafy.ext@orange.com> | 2018-01-02 18:06:39 +0200 |
commit | 61f2cf146856955cf2de3a95a52acc96f1b6088d (patch) | |
tree | f882b5f517db36cb4051f4e5dcc5e4fba0443862 /python_moonutilities/tests | |
parent | 8e2c9d229720d3f6fd6e764f5a801c8bbe82a201 (diff) |
update methods to be private instead of public
adding validation for parameter before accessing it
Change-Id: I984a38ef7dfec281c4aa97d6ea3df72bd8c8659d
Signed-off-by: sgdt6900 <rhanafy.ext@orange.com>
Diffstat (limited to 'python_moonutilities/tests')
-rw-r--r-- | python_moonutilities/tests/unit_python/test_cache.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python_moonutilities/tests/unit_python/test_cache.py b/python_moonutilities/tests/unit_python/test_cache.py index db1e3ae7..679bb0ce 100644 --- a/python_moonutilities/tests/unit_python/test_cache.py +++ b/python_moonutilities/tests/unit_python/test_cache.py @@ -55,7 +55,7 @@ def test_get_object_failure(): name = 'invalid name' with pytest.raises(Exception) as exception_info: cache_obj.get_object(data_mock.shared_ids["policy"]["policy_id_1"], name) - assert str(exception_info.value) == '400: Subject Unknown' + assert str(exception_info.value) == '400: Object Unknown' def test_get_action_success(): @@ -72,7 +72,7 @@ def test_get_action_failure(): name = 'invalid name' with pytest.raises(Exception) as exception_info: cache_obj.get_action(data_mock.shared_ids["policy"]["policy_id_1"], name) - assert str(exception_info.value) == '400: Subject Unknown' + assert str(exception_info.value) == '400: Action Unknown' # ==================================================================================================== |