def test_renew_no_hook_validation(self):
    test_util.make_lineage(self.config.config_dir, 'sample-renewal.conf')
    args = ['renew', '--dry-run', '--post-hook=no-such-command', '--disable-hook-validation']
    with mock.patch('certbot._internal.hooks.post_hook'):
        self._test_renewal_common(True, [], args=args, should_renew=True, error_expected=False)
def test_renew_no_hook_validation(self):
    test_util.make_lineage(self.config.config_dir, 'sample-renewal.conf')
    args = ['renew', '--dry-run', '--post-hook=no-such-command', '--disable-hook-validation']
    with mock.patch('certbot._internal.hooks.post_hook'):
        self._test_renewal_common(True, [], args=args, should_renew=True, error_expected=False)