Merge "Port dashboard router tests on Python 3"

This commit is contained in:
Jenkins 2015-11-10 14:09:29 +00:00 committed by Gerrit Code Review
commit 83cf09f579
2 changed files with 5 additions and 2 deletions

View File

@ -118,7 +118,8 @@ class RouterTests(test.BaseAdminViewTests, r_test.RouterTests):
res = self.client.post(self.INDEX_URL, formData, follow=True)
self.assertNoFormErrors(res)
self.assertMessageCount(response=res, success=1)
self.assertIn('Deleted Router: ' + router.name, res.content)
self.assertIn('Deleted Router: ' + router.name,
res.content.decode('utf-8'))
@test.create_stubs({api.neutron: ('router_list', 'network_list',
'port_list', 'router_remove_interface',
@ -161,7 +162,8 @@ class RouterTests(test.BaseAdminViewTests, r_test.RouterTests):
res = self.client.post(self.INDEX_URL, formData, follow=True)
self.assertNoFormErrors(res)
self.assertMessageCount(response=res, success=1)
self.assertIn('Deleted Router: ' + router.name, res.content)
self.assertIn('Deleted Router: ' + router.name,
res.content.decode('utf-8'))
class RouterRouteTest(test.BaseAdminViewTests, r_test.RouterRouteTests):

View File

@ -29,6 +29,7 @@ commands =
openstack_dashboard.contrib.sahara.content.data_processing.jobs.tests \
openstack_dashboard.dashboards.admin.aggregates \
openstack_dashboard.dashboards.admin.metering \
openstack_dashboard.dashboards.admin.routers \
openstack_dashboard.dashboards.admin.volumes.volumes.tests \
openstack_dashboard.dashboards.identity.users \
openstack_dashboard.dashboards.project.access_and_security.api_access.tests \