def setUp(self):
    patches = {'account': mock.patch('certbot._internal.main.account'), 'atexit': mock.patch('certbot.util.atexit'), 'client': mock.patch('certbot._internal.main.client'), 'determine_account': mock.patch('certbot._internal.main._determine_account'), 'notify': mock.patch('certbot._internal.main.display_util.notify'), 'prepare_sub': mock.patch('certbot._internal.eff.prepare_subscription'), 'util': test_util.patch_get_utility()}
    self.mocks = {k: patches[k].start() for k in patches}
    for patch in patches.values():
        self.addCleanup(patch.stop)
    return super().setUp()
def setUp(self):
    patches = {'account': mock.patch('certbot._internal.main.account'), 'atexit': mock.patch('certbot.util.atexit'), 'client': mock.patch('certbot._internal.main.client'), 'determine_account': mock.patch('certbot._internal.main._determine_account'), 'notify': mock.patch('certbot._internal.main.display_util.notify'), 'prepare_sub': mock.patch('certbot._internal.eff.prepare_subscription'), 'util': test_util.patch_get_utility()}
    self.mocks = {k: patches[k].start() for k in patches}
    for patch in patches.values():
        self.addCleanup(patch.stop)
    return super().setUp()