diff options
author | Ethan Lynn <ethanlynnl@vmware.com> | 2018-03-26 12:09:35 -0700 |
---|---|---|
committer | Ethan Lynn <ethanlynnl@vmware.com> | 2018-03-26 12:10:03 -0700 |
commit | 60efc7cc18ab0b34846c49e1be012fd6233dcbcc (patch) | |
tree | f65a5f219428953f2fe9035e2d14a796c107349d | |
parent | 4f505dd9ed3ce2e84d8cf6d676d883598e195475 (diff) |
Add test_add_networks
Add test_add_networks for AAIClient
Change-Id: I53fb43674acaf86898bb44c874108d0b7ba481ba
Issue-ID: MULTICLOUD-199
Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
-rw-r--r-- | vio/vio/tests/test_aai_client.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vio/vio/tests/test_aai_client.py b/vio/vio/tests/test_aai_client.py index c02e1d2..c4ef303 100644 --- a/vio/vio/tests/test_aai_client.py +++ b/vio/vio/tests/test_aai_client.py @@ -70,3 +70,15 @@ class TestAAIClient(unittest.TestCase): } self.view.add_images(images) mock_call.assert_called_once() + + @mock.patch.object(restcall, "call_req") + def test_add_networks(self, mock_call): + networks = { + "networks": [{ + "name": "net-1", + "id": "net-id", + "segmentationId": 144 + }] + } + self.view.add_networks(networks) + mock_call.assert_called_once() |