def _certonly_new_request_common(self, mock_client, args=None):
    with mock.patch('certbot._internal.main._find_lineage_for_domains_and_certname') as mock_renewal:
        mock_renewal.return_value = ('newcert', None)
        with mock.patch('certbot._internal.main._init_le_client') as mock_init:
            mock_init.return_value = mock_client
            if (args is None):
                args = []
            args += '-d foo.bar -a standalone certonly'.split()
            self._call(args)
def _certonly_new_request_common(self, mock_client, args=None):
    with mock.patch('certbot._internal.main._find_lineage_for_domains_and_certname') as mock_renewal:
        mock_renewal.return_value = ('newcert', None)
        with mock.patch('certbot._internal.main._init_le_client') as mock_init:
            mock_init.return_value = mock_client
            if (args is None):
                args = []
            args += '-d foo.bar -a standalone certonly'.split()
            self._call(args)