def test_error_is_raised_if_entity_classes_to_map_over_is_undefined(self):
    job_class = prod_validation_jobs_one_off.ProdValidationAuditOneOffJob
    with self.assertRaises(NotImplementedError), self.swap(jobs_registry, 'ONE_OFF_JOB_MANAGERS', [job_class]):
        job_id = job_class.create_new()
        job_class.enqueue(job_id)
        self.process_and_flush_pending_tasks()
def test_error_is_raised_if_entity_classes_to_map_over_is_undefined(self):
    job_class = prod_validation_jobs_one_off.ProdValidationAuditOneOffJob
    with self.assertRaises(NotImplementedError), self.swap(jobs_registry, 'ONE_OFF_JOB_MANAGERS', [job_class]):
        job_id = job_class.create_new()
        job_class.enqueue(job_id)
        self.process_and_flush_pending_tasks()