def setUp(self):
    super().setUp()
    self.domain = 'example.org'
    patches = [mock.patch('certbot._internal.main._get_and_save_cert'), mock.patch('certbot._internal.main.display_ops.success_installation'), mock.patch('certbot._internal.main.display_ops.success_renewal'), mock.patch('certbot._internal.main._init_le_client'), mock.patch('certbot._internal.main._suggest_donation_if_appropriate'), mock.patch('certbot._internal.main._report_new_cert'), mock.patch('certbot._internal.main._find_cert'), mock.patch('certbot._internal.eff.handle_subscription')]
    self.mock_auth = patches[0].start()
    self.mock_success_installation = patches[1].start()
    self.mock_success_renewal = patches[2].start()
    self.mock_init = patches[3].start()
    self.mock_suggest_donation = patches[4].start()
    self.mock_report_cert = patches[5].start()
    self.mock_find_cert = patches[6].start()
    self.mock_subscription = patches[7].start()
    for patch in patches:
        self.addCleanup(patch.stop)
def setUp(self):
    super().setUp()
    self.domain = 'example.org'
    patches = [mock.patch('certbot._internal.main._get_and_save_cert'), mock.patch('certbot._internal.main.display_ops.success_installation'), mock.patch('certbot._internal.main.display_ops.success_renewal'), mock.patch('certbot._internal.main._init_le_client'), mock.patch('certbot._internal.main._suggest_donation_if_appropriate'), mock.patch('certbot._internal.main._report_new_cert'), mock.patch('certbot._internal.main._find_cert'), mock.patch('certbot._internal.eff.handle_subscription')]
    self.mock_auth = patches[0].start()
    self.mock_success_installation = patches[1].start()
    self.mock_success_renewal = patches[2].start()
    self.mock_init = patches[3].start()
    self.mock_suggest_donation = patches[4].start()
    self.mock_report_cert = patches[5].start()
    self.mock_find_cert = patches[6].start()
    self.mock_subscription = patches[7].start()
    for patch in patches:
        self.addCleanup(patch.stop)