summaryrefslogtreecommitdiffstats
path: root/vio
diff options
context:
space:
mode:
Diffstat (limited to 'vio')
-rw-r--r--vio/vio/tests/test_aai_client.py8
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"]))