def METHOD_NAME(record_id, is_embargoed):
    with app.app_context():
        with app.test_client() as client:
            login_user(non_creator, client)
            # test open_access field in record's metadata
            record = Record.get_record(record_id)
            assert record['open_access'] != is_embargoed
            # test record's file access
            subtest_file_bucket_permissions(
                client, record.files.bucket,
                access_level=None if is_embargoed else 'read',
                is_authenticated=True
            )