summaryrefslogtreecommitdiff
path: root/openstack_dashboard/test/test_plugins/panel_tests.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-04-23 19:01:38 +0000
committerGerrit Code Review <review@openstack.org>2015-04-23 19:01:38 +0000
commit25acfcb24801613f5994f1e6e215d4b76f0dd527 (patch)
tree1aa7c28b33268efd7dfb394e101f105a4bf747e0 /openstack_dashboard/test/test_plugins/panel_tests.py
parentbd9a28699b8a3b6d681919d78b826564da941ce7 (diff)
parent5c1604275bfbe621e5e168f8ba1f937d308d6ab8 (diff)
downloadhorizon-25acfcb24801613f5994f1e6e215d4b76f0dd527.tar.gz
Merge "Fix addition of plugin panel to panel group" into stable/kilo
Diffstat (limited to 'openstack_dashboard/test/test_plugins/panel_tests.py')
-rw-r--r--openstack_dashboard/test/test_plugins/panel_tests.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/openstack_dashboard/test/test_plugins/panel_tests.py b/openstack_dashboard/test/test_plugins/panel_tests.py
index 059a3f509..83afb2612 100644
--- a/openstack_dashboard/test/test_plugins/panel_tests.py
+++ b/openstack_dashboard/test/test_plugins/panel_tests.py
@@ -43,13 +43,23 @@ util_settings.update_dashboards([
class PanelPluginTests(test.PluginTestCase):
def test_add_panel(self):
dashboard = horizon.get_dashboard("admin")
+ panel_group = dashboard.get_panel_group('admin')
+ # Check that the panel is in its configured dashboard.
self.assertIn(plugin_panel.PluginPanel,
[p.__class__ for p in dashboard.get_panels()])
+ # Check that the panel is in its configured panel group.
+ self.assertIn(plugin_panel.PluginPanel,
+ [p.__class__ for p in panel_group])
def test_remove_panel(self):
dashboard = horizon.get_dashboard("admin")
+ panel_group = dashboard.get_panel_group('admin')
+ # Check that the panel is no longer in the configured dashboard.
self.assertNotIn(info_panel.Info,
[p.__class__ for p in dashboard.get_panels()])
+ # Check that the panel is no longer in the configured panel group.
+ self.assertNotIn(info_panel.Info,
+ [p.__class__ for p in panel_group])
def test_default_panel(self):
dashboard = horizon.get_dashboard("admin")