diff options
author | Ethan Lynn <ethanlynnl@vmware.com> | 2018-06-13 10:31:02 +0800 |
---|---|---|
committer | Ethan Lynn <ethanlynnl@vmware.com> | 2018-06-13 10:31:27 +0800 |
commit | 7c964e6e09714591b4e69743362037df1f9bd9cd (patch) | |
tree | 5e1c54c67f0c9fae07123461b561b1928c69cce9 /vio | |
parent | 1a41a12dfae60165635a8b442e84042280ed79d7 (diff) |
Add test_del_vim
Add test_del_vim
Change-Id: I1a7058eab6cee74b94cfe0790cc1a2f24dd4e06e
Issue-ID: MULTICLOUD-199
Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
Diffstat (limited to 'vio')
-rw-r--r-- | vio/vio/tests/test_aai_client.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vio/vio/tests/test_aai_client.py b/vio/vio/tests/test_aai_client.py index 80d5200..1bf79d1 100644 --- a/vio/vio/tests/test_aai_client.py +++ b/vio/vio/tests/test_aai_client.py @@ -167,3 +167,14 @@ class TestAAIClient(unittest.TestCase): } self.view._del_azs(rsp) mock_call.assert_called_once() + + @mock.patch.object(restcall, "call_req") + def test_del_vim(self, mock_call): + resp = { + "resource-version": "1" + } + self.view.get_vim = mock.MagicMock() + self.view.get_vim.return_value = resp + mock_call.return_value = [0, "", "", ""] + self.view.delete_vim() + mock_call.assert_called_once() |