def setUp(self):
    swat.reset_option()
    swat.options.cas.print_messages = False
    swat.options.interactive_mode = False
    self.s = swat.CAS()
    self.server_type = tm.get_cas_host_type(self.s)
    self.server_sep = '\\'
    if (self.server_type.startswith('lin') or self.server_type.startswith('osx')):
        self.server_sep = '/'
    if ('DLPY_DATA_DIR' in os.environ):
        self.data_dir = os.environ.get('DLPY_DATA_DIR')
        if self.data_dir.endswith(self.server_sep):
            self.data_dir = self.data_dir[:(- 1)]
        self.data_dir += self.server_sep
    if ('DLPY_DATA_DIR_LOCAL' in os.environ):
        self.data_dir_local = os.environ.get('DLPY_DATA_DIR_LOCAL')
        if self.data_dir_local.endswith(self.server_sep):
            self.data_dir_local = self.data_dir_local[:(- 1)]
        self.data_dir_local += self.server_sep
def setUp(self):
    swat.reset_option()
    swat.options.cas.print_messages = False
    swat.options.interactive_mode = False
    self.s = swat.CAS()
    self.server_type = tm.get_cas_host_type(self.s)
    self.server_sep = '\\'
    if (self.server_type.startswith('lin') or self.server_type.startswith('osx')):
        self.server_sep = '/'
    if ('DLPY_DATA_DIR' in os.environ):
        self.data_dir = os.environ.get('DLPY_DATA_DIR')
        if self.data_dir.endswith(self.server_sep):
            self.data_dir = self.data_dir[:(- 1)]
        self.data_dir += self.server_sep
    if ('DLPY_DATA_DIR_LOCAL' in os.environ):
        self.data_dir_local = os.environ.get('DLPY_DATA_DIR_LOCAL')
        if self.data_dir_local.endswith(self.server_sep):
            self.data_dir_local = self.data_dir_local[:(- 1)]
        self.data_dir_local += self.server_sep