def setUp(self):
     import glsclient.log as logger
     self.log = logger.get_custom_logger(glsclient.LOGFILE)
     self.log.setLevel('DEBUG')
     self.gls = glsclient.GlsClientApi(server=glsclient.TEST_SERVER, username=glsclient.USERNAME, password=glsclient.PASSWORD)
     self.unknown_id = 'unknown'
     self.containertype_id = '1'
     self.containertype_name = '96 well plate'
     self.instrument_id = '5'
     self.instrument_name = 'Luke-Leia [HWI-ST230]'
     self.lab_id = '11'
     self.lab_name = 'CRUKCI Core - Genomics'
     # load project
     self.project_name = 'Py Test Project'
     self.projects = self.gls.list_filter_by_name('project', self.project_name)
     self.project = self.projects.project[0]
     # load container type
     self.container_type_name = 'Tube'
     self.container_types = self.gls.list_filter_by_name('container_type', self.container_type_name)
     self.container_type = self.container_types.container_type[0]
     # container name
     self.container_name = 'Container created via Python Unit Test'
     # sample name
     self.sample_name = 'Sample created via Python Unit Test'
     # workflow name
     self.workflow_name = 'BIO: Analyses'
     self.workflows = self.gls.list_filter_by_name('workflow', self.workflow_name)
     self.workflow = self.workflows.workflow[0]
     # process type
     self.process_type_name = 'Automated Pipeline Reports'
     self.process_types = self.gls.list_filter_by_name('process_type', self.process_type_name)
     self.process_type = self.process_types.process_type[0]
 def setUp(self):
     import glsclient.log as logger
     self.log = logger.get_custom_logger(glsclient.LOGFILE)
     self.log.setLevel('DEBUG')
     self.glsutil = glsclient.GlsUtil(server=glsclient.TEST_SERVER)