PR#2727: Fix progname
Merges #2727 https://pagure.io/koji/pull-request/2727 Fixes: #2599 https://pagure.io/koji/issue/2599 CLI list-history with non existing host or channel
This commit is contained in:
commit
bf34b1fbbf
1 changed files with 3 additions and 3 deletions
|
|
@ -205,11 +205,11 @@ class TestListHistory(utils.CliTestCase):
|
|||
|
||||
@mock.patch('sys.stderr', new_callable=StringIO)
|
||||
def test_list_history_without_option(self, stderr):
|
||||
expected = "Usage: python -m nose list-history [options]\n" \
|
||||
expected = "Usage: %s list-history [options]\n" \
|
||||
"(Specify the --help global option for a list of other " \
|
||||
"help options)\n\n" \
|
||||
"python -m nose: error: Please specify an option to limit " \
|
||||
"the query\n"
|
||||
"%s: error: Please specify an option to limit " \
|
||||
"the query\n" %(self.progname, self.progname)
|
||||
self.session.getChannel.return_value = None
|
||||
with self.assertRaises(SystemExit) as ex:
|
||||
anon_handle_list_history(self.options, self.session, [])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue