def test_no_renewal_with_hooks(self):
    (_, _, stdout) = self._test_renewal_common(due_for_renewal=False, extra_args=None, should_renew=False, args=['renew', '--post-hook', '{0} -c "print(\'hello world\');"'.format(sys.executable)])
    self.assertTrue(('No hooks were run.' in stdout.getvalue()))
def test_no_renewal_with_hooks(self):
    (_, _, stdout) = self._test_renewal_common(due_for_renewal=False, extra_args=None, should_renew=False, args=['renew', '--post-hook', '{0} -c "print(\'hello world\');"'.format(sys.executable)])
    self.assertTrue(('No hooks were run.' in stdout.getvalue()))