def construct_mock_users(email_list, type):
    """Takes a list of email addresses and a user type, and returns a
    mock user object with just enough information to check for object
    access control.

    """

    class MockUser(object):
        def __init__(self, user_dict):
            for k, v in user_dict.items():
                setattr(self, k, v)

    users = []

    for email in email_list:
        user = {
            'email': email,
            'type': type,
            '_is_mock': True,
            'is_superuser': False
        }
        users.append(MockUser(user))

    return users