From 0978a4023edea25dc89e0557e3044c2e72b7fe4e Mon Sep 17 00:00:00 2001 From: Ethan Lynn Date: Wed, 13 Jun 2018 11:27:13 +0800 Subject: Add test_get_hpa_instru Add test_get_hpa_instru Change-Id: Ie13dbadfdb02d352a91eec8b944eee6f4376758b Issue-ID: MULTICLOUD-199 Signed-off-by: Ethan Lynn --- vio/vio/tests/test_aai_client.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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"])) -- cgit 1.2.3-korg