def prepare(self, ss):
        # prepare DISPLAY
        self._old_os_environ_display = None
        if 'DISPLAY' in os.environ:
            self._old_os_environ_display = os.environ['DISPLAY']
        os.environ['DISPLAY'] = ss.config['selenium_display']

        # prepare config
        self.KATELLO = namespace.load_ns({
            'user': ss.config['katello_user'],
            'password': ss.config['katello_password'],
            'url': "https://" + ss.Instances['KATELLO'][0].parameters['public_dns_name']
        })
    def prepare(self, ss):
        # prepare DISPLAY
        self._old_os_environ_display = None
        if 'DISPLAY' in os.environ:
            self._old_os_environ_display = os.environ['DISPLAY']
        os.environ['DISPLAY'] = ss.config['selenium_display']

        # prepare config
        self.KATELLO = namespace.load_ns({
            'user':
            ss.config['katello_user'],
            'password':
            ss.config['katello_password'],
            'url':
            "https://" +
            ss.Instances['KATELLO'][0].parameters['public_dns_name']
        })
import logging, unittest, yaml, sys, os
from pageobjects import namespace

INVENTORY_FILE='./inventory.yml'
log = logging.getLogger(__name__)

# globals INIT
with open(INVENTORY_FILE) as fd:
    globals().update(namespace.load_ns(yaml.load(fd)))

def skipUnlessHasAttributes(obj, *attributes):
    '''unittest-like skipping decorator'''
    for attribute in attributes:
        if not hasattr(obj, attribute):
            return unittest.skip("{!r} doesn't have {!r}".format(obj, attribute)) 
    return lambda func: func

def setUpPackage():
    '''Set up DISPLAY'''
    try:
        os.environ['DISPLAY'] = ROLES.SELENIUM.display
    except (AttributeError, NameError) as e:
        raise unittest.SkipTest(e.message)

def tearDownPackage():
    pass

import logging, unittest, yaml, sys, os
from pageobjects import namespace

INVENTORY_FILE = './inventory.yml'
log = logging.getLogger(__name__)

# globals INIT
with open(INVENTORY_FILE) as fd:
    globals().update(namespace.load_ns(yaml.load(fd)))


def skipUnlessHasAttributes(obj, *attributes):
    '''unittest-like skipping decorator'''
    for attribute in attributes:
        if not hasattr(obj, attribute):
            return unittest.skip("{!r} doesn't have {!r}".format(
                obj, attribute))
    return lambda func: func


def setUpPackage():
    '''Set up DISPLAY'''
    try:
        os.environ['DISPLAY'] = ROLES.SELENIUM.display
    except (AttributeError, NameError) as e:
        raise unittest.SkipTest(e.message)


def tearDownPackage():
    pass