From 4f505dd9ed3ce2e84d8cf6d676d883598e195475 Mon Sep 17 00:00:00 2001 From: Ethan Lynn Date: Mon, 26 Mar 2018 12:06:26 -0700 Subject: Add test_add_images Add test_add_images for AAIClient Change-Id: I21de890cc5ea266e8005f0eda0768f12fa927a51 Issue-ID: MULTICLOUD-199 Signed-off-by: Ethan Lynn --- vio/vio/tests/test_aai_client.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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() -- cgit 1.2.3-korg