Merge "Port error_pages tests to Python 3"

This commit is contained in:
Jenkins 2015-09-04 10:09:50 +00:00 committed by Gerrit Code Review
commit 8cd862767a
2 changed files with 2 additions and 1 deletions

View File

@ -28,4 +28,4 @@ class ErrorPageTests(test.TestCase):
TEMPLATE_DIRS = (path.join(settings.ROOT_PATH, 'templates'),)
with self.settings(TEMPLATE_DIRS=TEMPLATE_DIRS):
response = self.client.get('/500/')
self.assertTrue('Server error' in response.content)
self.assertIn(b'Server error', response.content)

View File

@ -53,6 +53,7 @@ commands =
openstack_dashboard.test.api_tests.nova_tests \
openstack_dashboard.test.test_plugins.panel_group_tests.PanelGroupPluginTests \
openstack_dashboard.test.test_plugins.panel_tests.PanelPluginTests \
openstack_dashboard.test.tests.error_pages \
openstack_dashboard.test.tests.policy \
openstack_dashboard.test.tests.policy_backend \
openstack_dashboard.test.tests.utils