Merge "Cleanup error messages on failure"
This commit is contained in:
commit
0dfb690e21
@ -60,8 +60,12 @@ class HelpTests(base.TestCase):
|
|||||||
"""Check server commands in main help message."""
|
"""Check server commands in main help message."""
|
||||||
raw_output = self.openstack('help')
|
raw_output = self.openstack('help')
|
||||||
for command, description in self.SERVER_COMMANDS:
|
for command, description in self.SERVER_COMMANDS:
|
||||||
self.assertIn(command, raw_output)
|
msg = 'Command: %s not found in help output:\n%s' % (
|
||||||
self.assertIn(description, raw_output)
|
command, raw_output)
|
||||||
|
self.assertIn(command, raw_output, msg)
|
||||||
|
msg = 'Description: %s not found in help output:\n%s' % (
|
||||||
|
description, raw_output)
|
||||||
|
self.assertIn(description, raw_output, msg)
|
||||||
|
|
||||||
def test_server_only_help(self):
|
def test_server_only_help(self):
|
||||||
"""Check list of server-related commands only."""
|
"""Check list of server-related commands only."""
|
||||||
|
Loading…
Reference in New Issue
Block a user