def METHOD_NAME(self):
    pilot = {'uid'        : 'pilot.0000',
             'description': {}}
    with self.assertRaises(ValueError):
        # `PilotDescription.resource` is not provided
        self._session._get_resource_sandbox(pilot=pilot)
    # check `default_remote_workdir` handling
    # ORNL: split `project` by "_"
    pilot['description'].update({'resource': 'ornl.summit',
                                 'project' : 'PROJNAME_machine'})
    self.assertIn('/projname/',
                  self._session._get_resource_sandbox(pilot).path)
    self._session._cache['resource_sandbox'] = {}
    # ORNL: no any splitting
    pilot['description'].update({'resource': 'ornl.summit',
                                 'project' : 'PROJNAME'})
    self.assertIn('/projname/',
                  self._session._get_resource_sandbox(pilot).path)
    self._session._cache['resource_sandbox'] = {}
    # NCSA: split `project` by "-"
    pilot['description'].update({'resource': 'ncsa.delta',
                                 'project' : 'bbka-delta-cpu'})
    self.assertIn('/bbka/',
                  self._session._get_resource_sandbox(pilot).path)
    self._session._cache['resource_sandbox'] = {}
    # NCSA: no splitting
    pilot['description'].update({'resource': 'ncsa.delta',
                                 'project' : 'bbka_wrongsplitter'})
    self.assertNotIn('/bbka/',
                     self._session._get_resource_sandbox(pilot).path)
    self._session._cache['resource_sandbox'] = {}