summaryrefslogtreecommitdiff
path: root/cliff/tests/test_help.py
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2015-09-23 19:46:08 +0000
committerDoug Hellmann <doug@doughellmann.com>2015-09-23 21:33:56 +0000
commite3a24897a7ab4205319eceadf4f8f5d1bc40af86 (patch)
tree09429c16327015961d07e94bae0f5d19c07acc85 /cliff/tests/test_help.py
parent25cce67529d70e3aab8653946fdf1eda12ded9b9 (diff)
downloadcliff-e3a24897a7ab4205319eceadf4f8f5d1bc40af86.tar.gz
Fix test class docstring for py 3.5
Add a docstring to TestCommand so we get that one instead of inheriting the one from the base class. In previous versions the docstring was not inherited, but that has changed. Change-Id: I90c808836f4f7651df89734ace32dcf62a351525 Related-bug: #1491888
Diffstat (limited to 'cliff/tests/test_help.py')
-rw-r--r--cliff/tests/test_help.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/cliff/tests/test_help.py b/cliff/tests/test_help.py
index 3ee6fe5..4c488af 100644
--- a/cliff/tests/test_help.py
+++ b/cliff/tests/test_help.py
@@ -94,7 +94,11 @@ def test_show_help_for_help():
basecommand = os.path.split(sys.argv[0])[1]
assert 'usage: %s [--version]' % basecommand in help_text
assert 'optional arguments:\n --version' in help_text
- assert 'one \n three word command \n' in help_text
+ expected = (
+ ' one Test command.\n'
+ ' three word command Test command.\n'
+ )
+ assert expected in help_text
def test_list_deprecated_commands():