'Setup Cobbler XML-RPC connection and login'

def setUp(self):

    logging.basicConfig(stream=sys.stderr)
    self.logger = logging.getLogger(self.__class__.__name__)
    self.logger.setLevel(logging.DEBUG)
    api_url = local_get_cobbler_api_url()
    self.remote = xmlrpclib.Server(api_url, allow_none=True)
    shared_secret = get_shared_secret()
    self.token = self.remote.login('', shared_secret)
    if (not self.token):
        sys.exit(1)
