def test_group_shortopt_lowercase(self, parser):
    group = parser.getgroup('hello')
    pytest.raises(ValueError, '\n            group.addoption("-x", action="store_true")\n        ')
    assert (len(group.options) == 0)
    group._addoption('-x', action='store_true')
    assert (len(group.options) == 1)
def test_group_shortopt_lowercase(self, parser):
    group = parser.getgroup('hello')
    pytest.raises(ValueError, '\n            group.addoption("-x", action="store_true")\n        ')
    assert (len(group.options) == 0)
    group._addoption('-x', action='store_true')
    assert (len(group.options) == 1)