def test_batch_build_prefix(self): resolved = _command_type._build_prefix('id', 'id', 'pool') self.assertEqual(resolved, 'id') resolved = _command_type._build_prefix('id', 'id', 'pool.start_task') self.assertEqual(resolved, 'start_task_id') resolved = _command_type._build_prefix('id', 'id', 'job_schedule.job_specification') self.assertEqual(resolved, 'job_id') resolved = _command_type._build_prefix('properties_id', 'id', 'pool.start_task.properties') self.assertEqual(resolved, 'start_task_id') resolved = _command_type._build_prefix('start_task_id', 'id', 'pool.start_task.properties') self.assertEqual(resolved, 'pool_id') resolved = _command_type._build_prefix('pool_id', 'id', 'pool.start_task.properties') self.assertEqual(resolved, 'pool_id')
def test_batch_build_prefix(self): resolved = _command_type._build_prefix('id', 'id', 'pool') self.assertEqual(resolved, 'id') resolved = _command_type._build_prefix('id', 'id', 'pool.start_task') self.assertEqual(resolved, 'start_task_id') resolved = _command_type._build_prefix('id', 'id', 'job_schedule.job_specification') self.assertEqual(resolved, 'job_id') resolved = _command_type._build_prefix('properties_id', 'id', 'pool.start_task.properties') self.assertEqual(resolved, 'start_task_id') resolved = _command_type._build_prefix('start_task_id', 'id', 'pool.start_task.properties') self.assertEqual(resolved, 'pool_id') resolved = _command_type._build_prefix('pool_id', 'id', 'pool.start_task.properties') self.assertEqual(resolved, 'pool_id')