def test_parser_addoption(self, parser):
    group = parser.getgroup('custom options')
    assert (len(group.options) == 0)
    group.addoption('--option1', action='store_true')
    assert (len(group.options) == 1)
def test_parser_addoption(self, parser):
    group = parser.getgroup('custom options')
    assert (len(group.options) == 0)
    group.addoption('--option1', action='store_true')
    assert (len(group.options) == 1)