fixed based on reviewer's comment.

This commit is contained in:
Kei Masumoto
2011-03-10 13:30:52 +09:00
parent 5a80ba607d
commit 12036e81ac
5 changed files with 26 additions and 24 deletions

View File

@@ -284,9 +284,10 @@ class AOETestCase(DriverTestCase):
self.volume.check_for_export(self.context, self.instance_id)
except exception.ProcessExecutionError, e:
volume_id = volume_id_list[0]
msg = _("""Cannot confirm exported volume id:%(volume_id)s."""
"""vblade process for e%(shelf_id)s.%(blade_id)s """
"""isn't running.""") % locals()
msg = _("Cannot confirm exported volume id:%(volume_id)s. "
"vblade process for e%(shelf_id)s.%(blade_id)s "
"isn't running.") % locals()
msg_is_match = (0 <= e.message.find(msg))
self.assertTrue(msg_is_match)