summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Lynn <ethanlynnl@vmware.com>2018-06-13 15:12:56 +0800
committerEthan Lynn <ethanlynnl@vmware.com>2018-06-13 15:12:56 +0800
commit9f1fae3e546cb08bc6871b828cf2cd49dfe6529f (patch)
treef1f6cfdae76e56086dca91074d6626af50a6a596
parent66b963b27f3cf1f5910ac5c996f78fa62844dbde (diff)
Add test_get_flavors_detail
Add test_get_flavors_detail Change-Id: I75d73f3271d1d068bd4b005b5ba5f2321e25a579 Issue-ID: MULTICLOUD-199 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
-rw-r--r--vio/vio/tests/test_fake_nova_view.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/vio/vio/tests/test_fake_nova_view.py b/vio/vio/tests/test_fake_nova_view.py
index 6fbae51..5c54124 100644
--- a/vio/vio/tests/test_fake_nova_view.py
+++ b/vio/vio/tests/test_fake_nova_view.py
@@ -249,6 +249,15 @@ class TestFakeFlavorDetail(unittest.TestCase):
resp = self.view.get(req, "abcd", "1234")
self.assertEqual(200, resp.status_code)
+ def test_get_flavors_detail(self):
+ req = mock.Mock()
+ req.META = {
+ "HTTP_X_AUTH_TOKEN": Token
+ }
+ resp = self.view.get(req, "abcd", "detail")
+ self.assertEqual(200, resp.status_code)
+ self.assertEqual(6, len(resp.data["flavors"]))
+
class TestFakeFlavorList(unittest.TestCase):