summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cliff/tests/test_help.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cliff/tests/test_help.py b/cliff/tests/test_help.py
index 9034779..4862f25 100644
--- a/cliff/tests/test_help.py
+++ b/cliff/tests/test_help.py
@@ -101,7 +101,7 @@ class TestHelp(base.TestBase):
help_text = stdout.getvalue()
basecommand = os.path.split(sys.argv[0])[1]
self.assertIn('usage: %s [--version]' % basecommand, help_text)
- self.assertIn('optional arguments:\n --version', help_text)
+ self.assertRegex(help_text, 'option(s|al arguments):\n --version')
expected = (
' one Test command.\n'
' three word command Test command.\n'