def setup_class(cls): if nose_config and "radius" in nose_config: cls.radius_authport = nose_config["radius"]["authport"] cls.radius_acctport = nose_config["radius"]["acctport"] if nose_config and "paster" in nose_config: cls.paster_port = nose_config["paster"]["port"] TestController.setup_class()
def setup_class(cls): if nose_config and 'radius' in nose_config: cls.radius_authport = nose_config['radius']['authport'] cls.radius_acctport = nose_config['radius']['acctport'] if nose_config and 'paster' in nose_config: cls.paster_port = nose_config['paster']['port'] TestController.setup_class()