diff options
author | Ethan Lynn <ethanlynnl@vmware.com> | 2018-03-26 12:25:35 -0700 |
---|---|---|
committer | Ethan Lynn <ethanlynnl@vmware.com> | 2018-03-26 12:25:59 -0700 |
commit | 98c3f5881a15cffc2e1f1541f99ca8ca3d744eab (patch) | |
tree | d174a71e79e7187e583fc62ae83b512fabc7c182 | |
parent | d12fae86982945353249fd702ea9954d9008f090 (diff) |
Add test_del_flavors
Add test_del_flavors for AAIClient
Change-Id: I372ba6f9973db626ac0af7d4b1988d80f5cd5a12
Issue-ID: MULTICLOUD-199
Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
-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 cd9030e..61eedd8 100644 --- a/vio/vio/tests/test_aai_client.py +++ b/vio/vio/tests/test_aai_client.py @@ -111,3 +111,17 @@ class TestAAIClient(unittest.TestCase): } self.view._del_tenants(rsp) mock_call.assert_called_once() + + @mock.patch.object(restcall, "call_req") + def test_del_flavors(self, mock_call): + mock_call.return_value = [0] + rsp = { + "flavors": { + "flavor": [{ + "flavor-id": "fake-id", + "resource-version": "fake-version" + }] + } + } + self.view._del_flavors(rsp) + mock_call.assert_called_once() |