def test_group_addoption_conflict(self):
    group = parseopt.OptionGroup('hello again')
    group.addoption('--option1', '--option-1', action='store_true')
    with pytest.raises(ValueError) as err:
        group.addoption('--option1', '--option-one', action='store_true')
    assert (str({'--option1'}) in str(err.value))
def test_group_addoption_conflict(self):
    group = parseopt.OptionGroup('hello again')
    group.addoption('--option1', '--option-1', action='store_true')
    with pytest.raises(ValueError) as err:
        group.addoption('--option1', '--option-one', action='store_true')
    assert (str({'--option1'}) in str(err.value))