def fill_auth_list_from_groups(self, auth_provider, user_groups, auth_list):
        group_names = [item for item in auth_provider if item.endswith('%')]
        if group_names:
            for group_name in group_names:
                if group_name.rstrip("%") in user_groups:
                    for matcher in auth_provider[group_name]:
                        auth_list.append(matcher)
        return auth_list
Test that clean_invite_code returns a valid invite object.
dataset/ETHPy150Open saltstack/salt/salt/utils/minions.py/CkMinions.fill_auth_list_from_groups--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/accounts/tests/test_forms.py/InviteEntryFormTest.test_clean_invite_code