@mock.patch('certbot._internal.log.post_arg_parse_setup')
def test_quiet_renew(self, _):
    test_util.make_lineage(self.config.config_dir, 'sample-renewal.conf')
    args = ['renew', '--dry-run']
    (_, _, stdout) = self._test_renewal_common(True, [], args=args, should_renew=True)
    out = stdout.getvalue()
    self.assertTrue(('renew' in out))
    args = ['renew', '--dry-run', '-q']
    (_, _, stdout) = self._test_renewal_common(True, [], args=args, should_renew=True, quiet_mode=True)
    out = stdout.getvalue()
    self.assertEqual('', out)
@mock.patch('certbot._internal.log.post_arg_parse_setup')
def test_quiet_renew(self, _):
    test_util.make_lineage(self.config.config_dir, 'sample-renewal.conf')
    args = ['renew', '--dry-run']
    (_, _, stdout) = self._test_renewal_common(True, [], args=args, should_renew=True)
    out = stdout.getvalue()
    self.assertTrue(('renew' in out))
    args = ['renew', '--dry-run', '-q']
    (_, _, stdout) = self._test_renewal_common(True, [], args=args, should_renew=True, quiet_mode=True)
    out = stdout.getvalue()
    self.assertEqual(, out)