Пример #1
0
 def test_not_verbose(self, capsys):
     securedrop_admin.setup_logger(verbose=False)
     securedrop_admin.sdlog.debug('HIDDEN')
     securedrop_admin.sdlog.info('VISIBLE')
     out, err = capsys.readouterr()
     assert 'HIDDEN' not in out
     assert 'VISIBLE' in out
 def test_not_verbose(self, capsys):
     securedrop_admin.setup_logger(verbose=False)
     securedrop_admin.sdlog.debug("HIDDEN")
     securedrop_admin.sdlog.info("VISIBLE")
     out, err = capsys.readouterr()
     assert "HIDDEN" not in out
     assert "VISIBLE" in out
Пример #3
0
 def test_verbose(self, capsys):
     securedrop_admin.setup_logger(verbose=True)
     securedrop_admin.sdlog.debug('VISIBLE')
     out, err = capsys.readouterr()
     assert 'VISIBLE' in out