summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-03-14 00:37:30 +0000
committerGerrit Code Review <review@openstack.org>2018-03-14 00:37:30 +0000
commit0dfb690e21dd7a1bfa99883ee71ecb409aa9ff7e (patch)
tree17fa8ed5835261c6884dab9a4f3c51c9a941105b /openstackclient
parent9ad7a140e9eb47d53bae084bb8005ed9a473303b (diff)
parente5d60b220f7f8a549b15ea1bb08048798603111a (diff)
downloadpython-openstackclient-0dfb690e21dd7a1bfa99883ee71ecb409aa9ff7e.tar.gz
Merge "Cleanup error messages on failure"
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/tests/functional/common/test_help.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/openstackclient/tests/functional/common/test_help.py b/openstackclient/tests/functional/common/test_help.py
index 7f274099..3a9aef9e 100644
--- a/openstackclient/tests/functional/common/test_help.py
+++ b/openstackclient/tests/functional/common/test_help.py
@@ -60,8 +60,12 @@ class HelpTests(base.TestCase):
"""Check server commands in main help message."""
raw_output = self.openstack('help')
for command, description in self.SERVER_COMMANDS:
- self.assertIn(command, raw_output)
- self.assertIn(description, raw_output)
+ msg = 'Command: %s not found in help output:\n%s' % (
+ 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):
"""Check list of server-related commands only."""