Unify error messages related to hosts and users
Fixes: https://pagure.io/koji/issue/2858
This commit is contained in:
parent
f2c314d07b
commit
8ecfc53119
5 changed files with 10 additions and 10 deletions
|
|
@ -203,9 +203,9 @@ class TestEditHost(utils.CliTestCase):
|
|||
handle_edit_host(options, session, args)
|
||||
self.assertExitCode(ex, 1)
|
||||
actual = stderr.getvalue()
|
||||
expected = """Host host does not exist
|
||||
expected = """No such host: %s
|
||||
No changes made, please correct the command line
|
||||
"""
|
||||
""" % host
|
||||
self.assertMultiLineEqual(actual, expected)
|
||||
# Finally, assert that things were called as we expected.
|
||||
activate_session_mock.assert_called_once_with(session, options)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue