File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -437,12 +437,14 @@ def test_load_versioned_actions_with_help(self):
437437 expected_help = ("help message (Supported by API versions "
438438 "%(start)s - %(end)s)" ) % {
439439 'start' : '3.0' , 'end' : '3.3' }
440- expected_desc = ("help message\n \n "
441- "This will not show up in help message\n " )
440+ self .assertIn ('help message' ,
441+ mock_add_parser .call_args_list [0 ][1 ]['description' ])
442+ self .assertIn ('This will not show up in help message' ,
443+ mock_add_parser .call_args_list [0 ][1 ]['description' ])
442444 mock_add_parser .assert_any_call (
443445 'fake-action' ,
444446 help = expected_help ,
445- description = expected_desc ,
447+ description = mock . ANY ,
446448 add_help = False ,
447449 formatter_class = cinderclient .shell .OpenStackHelpFormatter )
448450
You can’t perform that action at this time.
0 commit comments