def METHOD_NAME(self):
    base_def = {'foo': 'bar', 123: 555}
    jobs = {
        'variant_a': {'foo': 42},
        'variant_b': {'xxx': 31}
    }
    descriptor = DefDescriptor(name='x_name', base_definition=base_def, jobs=jobs)
    factory = DefinitionFactory(
        raw_definition_descriptor=descriptor,
        cfg_set=None,
    )
    merged_variants = factory._create_variants_dict(descriptor)
    self.assertEqual(set(merged_variants.keys()), {'variant_a', 'variant_b'})
    variant_a = merged_variants['variant_a']
    variant_b = merged_variants['variant_b']
    # jobs may overwrite values
    self.assertEqual(variant_a, {'foo': 42, 123: 555})
    # jobs may add attributes
    self. assertEqual(variant_b, {'foo': 'bar', 123: 555, 'xxx': 31})