diff options
author | 2018-03-26 22:08:29 -0700 | |
---|---|---|
committer | 2018-03-26 22:08:29 -0700 | |
commit | 44e80d314b61fb6b715c20b2da889f74c8d46a85 (patch) | |
tree | d07d168ad488ea78276c2bcf329396df917819d1 /vio | |
parent | 5a182222f7c5bf9251886c6e693576e429c26a3e (diff) |
Add test_del_azs
Add test_del_azs for AAIClient
Change-Id: I701c7595ec3cc339ba5fef72d79f6ce0f62c2742
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 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vio/vio/tests/test_aai_client.py b/vio/vio/tests/test_aai_client.py index 3811373..80d5200 100644 --- a/vio/vio/tests/test_aai_client.py +++ b/vio/vio/tests/test_aai_client.py @@ -153,3 +153,17 @@ class TestAAIClient(unittest.TestCase): } self.view._del_networks(rsp) mock_call.assert_called_once() + + @mock.patch.object(restcall, "call_req") + def test_del_azs(self, mock_call): + mock_call.return_value = [0] + rsp = { + "availability-zones": { + "availability-zone": [{ + "availability-zone-name": "fake-name", + "resource-version": "fake-version" + }] + } + } + self.view._del_azs(rsp) + mock_call.assert_called_once() |