human
Complete the below
def gen_all_identities():

    ''''A generator for all combinations of test inputs.
    Each generated item is a dict that represents what a shib IDP
    could potentially pass to django via request.META, i.e.
    setting (or not) request.META[\'givenName\'], etc.'
    '''

Here a shib IDP?
assistant
#Here a shib IDP
.
    def _build_identity_dict(mail, display_name, given_name, surname):
        '    Helper    function    to    return    a    dict    of    test    identity    '
        meta_dict = {'Shib-Identity-Provider': IDP, 'REMOTE_USER': REMOTE_USER}
        if (display_name is not None):
            meta_dict['displayName'] = display_name
        if (mail is not None):
            meta_dict['mail'] = mail
        if (given_name is not None):
            meta_dict['givenName'] = given_name
        if (surname is not None):
            meta_dict['sn'] = surname
        return meta_dict
    for mail in MAILS:
        for given_name in GIVENNAMES:
            for surname in SNS:
                for display_name in DISPLAYNAMES:
                    (yield _build_identity_dict(mail, display_name, given_name, surname))