diff options
author | Ethan Lynn <ethanlynnl@vmware.com> | 2018-06-13 11:27:13 +0800 |
---|---|---|
committer | Ethan Lynn <ethanlynnl@vmware.com> | 2018-06-13 11:27:13 +0800 |
commit | 0978a4023edea25dc89e0557e3044c2e72b7fe4e (patch) | |
tree | d3ede5d65f9a9e9df1b3293be9fd52ad745fc25a /vio | |
parent | bd679bf0f00b3b8842fe03d348e1b00694039a3d (diff) |
Add test_get_hpa_instru
Add test_get_hpa_instru
Change-Id: Ie13dbadfdb02d352a91eec8b944eee6f4376758b
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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vio/vio/tests/test_aai_client.py b/vio/vio/tests/test_aai_client.py index c32f10d..1381a3f 100644 --- a/vio/vio/tests/test_aai_client.py +++ b/vio/vio/tests/test_aai_client.py @@ -349,3 +349,11 @@ class TestAAIClient(unittest.TestCase): } ret = self.view._get_storage_capabilities(extra) self.assertEqual(3, len(ret["hpa-feature-attributes"])) + + @mock.patch.object(restcall, "call_req") + def test_get_hpa_instru(self, mock_call): + extra = { + "hw:capabilities:cpu_info:features": "avx", + } + ret = self.view._get_instruction_set_capabilities(extra) + self.assertEqual(1, len(ret["hpa-feature-attributes"])) |