def METHOD_NAME(self):
    mock_res_id = '84d1b8b60f274ba4be155881129561a9'
    mock_active_and_reserved_job_id = '04ee96ac-1cf2-459f-b497-3b2ac04b3877'
    mock_active_and_reserved_jobs = {
        'celery@6337f5f9054c': [{'args': [mock_res_id],
                                 'time_start': 4415073.585907947,
                                 'name': 'hs_core.tasks.create_bag_by_irods',
                                 'delivery_info': {'priority': 0,
                                                   'redelivered': False,
                                                   'routing_key': 'task.default',
                                                   'exchange': 'default'},
                                 'hostname': 'celery@6337f5f9054c',
                                 'acknowledged': True,
                                 'kwargs': {},
                                 'id': mock_active_and_reserved_job_id,
                                 'worker_pid': 60}]}
    mock_scheduled_job_id = '586be52d-3409-4258-959f-f91a5b81a493'
    mock_scheduled_jobs = {
        'celery@6337f5f9054c': [{'priority': 6,
                                 'eta': '2019-12-11T19:42:51.864720+00:00',
                                 'request': {
                                     'args': [mock_res_id],
                                     'time_start': None,
                                     'name': 'hs_core.tasks.create_bag_by_irods',
                                     'delivery_info': {'priority': 0,
                                                       'redelivered': True,
                                                       'routing_key': 'task.default',
                                                       'exchange': 'default'},
                                     'hostname': 'celery@6337f5f9054c',
                                     'acknowledged': False,
                                     'kwargs': {},
                                     'id': mock_scheduled_job_id,
                                     'worker_pid': None
                                 }}]}
    job_name = 'hs_core.tasks.create_bag_by_irods'
    ret_id = _retrieve_task_id(job_name, mock_res_id, mock_active_and_reserved_jobs)
    self.assertEqual(ret_id, mock_active_and_reserved_job_id, msg="retrieved task id not equal to "
                                                                  "mock_active_and_reserved_job_id")
    ret_id = _retrieve_task_id(job_name, mock_res_id, mock_scheduled_jobs)
    self.assertEqual(ret_id, mock_scheduled_job_id, msg="retrieved task id not equal to mock_scheduled_job_id")