Skip to content

Commit

Permalink
Add test which verify we don't print success message on failed attempt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kami committed Feb 21, 2017
1 parent 52a7b88 commit 09f3ca0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions st2client/tests/unit/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ def runTest(self, mock_gp):
retcode = self.shell.run(args)

self.assertTrue('Failed to log in as %s' % expected_username in self.stdout.getvalue())
self.assertTrue('Logged in as' not in self.stdout.getvalue())
self.assertEqual(retcode, 0)


Expand Down

0 comments on commit 09f3ca0

Please sign in to comment.