summaryrefslogtreecommitdiff
path: root/openstack_dashboard/dashboards/admin/info/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack_dashboard/dashboards/admin/info/tests.py')
-rw-r--r--openstack_dashboard/dashboards/admin/info/tests.py17
1 files changed, 1 insertions, 16 deletions
diff --git a/openstack_dashboard/dashboards/admin/info/tests.py b/openstack_dashboard/dashboards/admin/info/tests.py
index c7405d3..9cbe865 100644
--- a/openstack_dashboard/dashboards/admin/info/tests.py
+++ b/openstack_dashboard/dashboards/admin/info/tests.py
@@ -29,7 +29,7 @@ class SystemInfoViewTests(test.BaseAdminViewTests):
29 api.nova: ('service_list',), 29 api.nova: ('service_list',),
30 api.neutron: ('agent_list', 'is_extension_supported'), 30 api.neutron: ('agent_list', 'is_extension_supported'),
31 api.cinder: ('service_list',), 31 api.cinder: ('service_list',),
32 api.heat: ('service_list',)}) 32 })
33 def _test_base_index(self): 33 def _test_base_index(self):
34 api.base.is_service_enabled(IsA(http.HttpRequest), IgnoreArg()) \ 34 api.base.is_service_enabled(IsA(http.HttpRequest), IgnoreArg()) \
35 .MultipleTimes().AndReturn(True) 35 .MultipleTimes().AndReturn(True)
@@ -49,10 +49,6 @@ class SystemInfoViewTests(test.BaseAdminViewTests):
49 api.cinder.service_list(IsA(http.HttpRequest)).\ 49 api.cinder.service_list(IsA(http.HttpRequest)).\
50 AndReturn(cinder_services) 50 AndReturn(cinder_services)
51 51
52 heat_services = self.heat_services.list()
53 api.heat.service_list(IsA(http.HttpRequest)).\
54 AndReturn(heat_services)
55
56 self.mox.ReplayAll() 52 self.mox.ReplayAll()
57 53
58 res = self.client.get(INDEX_URL) 54 res = self.client.get(INDEX_URL)
@@ -88,14 +84,3 @@ class SystemInfoViewTests(test.BaseAdminViewTests):
88 ) 84 )
89 85
90 self.mox.VerifyAll() 86 self.mox.VerifyAll()
91
92 def test_heat_index(self):
93 res = self._test_base_index()
94 heat_services_tab = res.context['tab_group'].\
95 get_tab('heat_services')
96 self.assertQuerysetEqual(
97 heat_services_tab._tables['heat_services'].data,
98 [service.__repr__() for service in self.heat_services.list()]
99 )
100
101 self.mox.VerifyAll()