def test_group_ordering(self, parser):
    parser.getgroup('1')
    parser.getgroup('2')
    parser.getgroup('3', after='1')
    groups = parser._groups
    groups_names = [x.name for x in groups]
    assert (groups_names == list('132'))
def test_group_ordering(self, parser):
    parser.getgroup('1')
    parser.getgroup('2')
    parser.getgroup('3', after='1')
    groups = parser._groups
    groups_names = [x.name for x in groups]
    assert (groups_names == list('132'))