def METHOD_NAME(default_instance_group, rando, obj_perm, allowed, partial, readonly):
    if obj_perm:
        getattr(default_instance_group, obj_perm).members.add(rando)
    assert readonly == InstanceGroupAccess(rando).can_read(default_instance_group)
    assert partial == InstanceGroupAccess(rando).can_use(default_instance_group)
    assert not InstanceGroupAccess(rando).can_add(default_instance_group)
    assert allowed == InstanceGroupAccess(rando).can_admin(default_instance_group)
    assert allowed == InstanceGroupAccess(rando).can_change(default_instance_group, {'name': 'New Name'})