

def test_concat_choices():
    choices1 = model_helpers.Choices({
        'X': 1,
        'Y': 2,
    })
    choices2 = ((choices1 + model_helpers.Choices({
        
    })) + {
        'B': 4,
        'A': 5,
    })
    tools.assert_equal(choices2(), [(1, 'X'), (2, 'Y'), (5, 'A'), (4, 'B')])
    tools.assert_raises(ValueError, choices2.__add__, {
        'X': 7,
    })

dataset/ETHPy150Open rewardz/django_model_helpers/tests/test_choices.py test_concat_choices/VarMisuse@103/133 `choices1`->`choices2`