assert integration test is actually using authentication

This commit is contained in:
Lex Berezhny 2018-08-14 21:58:18 -04:00 committed by Jack Robison
parent 2590523fa1
commit 49c659b832
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -30,6 +30,7 @@ class AuthCLIIntegrationTest(unittest.TestCase):
yield self.daemon.start_listening()
def test_cli_status_command_with_auth(self):
self.assertTrue(self.daemon._use_authentication)
actual_output = StringIO()
with contextlib.redirect_stdout(actual_output):
cli.main(["status"])