mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-14 00:10:45 +03:00
23 lines
1.1 KiB
Diff
23 lines
1.1 KiB
Diff
diff --git a/cinderclient/tests/unit/test_shell.py b/cinderclient/tests/unit/test_shell.py
|
|
index c5d64af..6b67a8e 100644
|
|
--- a/cinderclient/tests/unit/test_shell.py
|
|
+++ b/cinderclient/tests/unit/test_shell.py
|
|
@@ -437,12 +437,14 @@
|
|
expected_help = ("help message (Supported by API versions "
|
|
"%(start)s - %(end)s)") % {
|
|
'start': '3.0', 'end': '3.3'}
|
|
- expected_desc = ("help message\n\n "
|
|
- "This will not show up in help message\n ")
|
|
+ self.assertIn('help message',
|
|
+ mock_add_parser.call_args_list[0][1]['description'])
|
|
+ self.assertIn('This will not show up in help message',
|
|
+ mock_add_parser.call_args_list[0][1]['description'])
|
|
mock_add_parser.assert_any_call(
|
|
'fake-action',
|
|
help=expected_help,
|
|
- description=expected_desc,
|
|
+ description=mock.ANY,
|
|
add_help=False,
|
|
formatter_class=cinderclient.shell.OpenStackHelpFormatter)
|
|
|