diff options
author | Ethan Lynn <ethanlynnl@vmware.com> | 2018-03-26 12:06:26 -0700 |
---|---|---|
committer | Ethan Lynn <ethanlynnl@vmware.com> | 2018-03-26 12:06:52 -0700 |
commit | 4f505dd9ed3ce2e84d8cf6d676d883598e195475 (patch) | |
tree | 0553b6832f66562846acb68462946046f20d28cf | |
parent | abb62387277c2c0a51fb62dff83cd78c92b74bfb (diff) |
Add test_add_images
Add test_add_images for AAIClient
Change-Id: I21de890cc5ea266e8005f0eda0768f12fa927a51
Issue-ID: MULTICLOUD-199
Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
-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 a3d0681..c02e1d2 100644 --- a/vio/vio/tests/test_aai_client.py +++ b/vio/vio/tests/test_aai_client.py @@ -59,3 +59,14 @@ class TestAAIClient(unittest.TestCase): } self.view.add_flavors(flavors) mock_call.assert_called_once() + + @mock.patch.object(restcall, "call_req") + def test_add_images(self, mock_call): + images = { + "images": [{ + "name": "ubuntu-16.04", + "id": "image-id" + }] + } + self.view.add_images(images) + mock_call.assert_called_once() |