def METHOD_NAME(readonly_pg_repo):
    fruits = readonly_pg_repo.images["latest"].get_table("fruits")
    object_meta = readonly_pg_repo.objects.get_object_meta(fruits.objects)[fruits.objects[0]]
    object_meta = object_meta._replace(size=12345)
    with pytest.raises(ProgrammingError) as e:
        readonly_pg_repo.objects.register_objects([object_meta])
    assert "You do not have sufficient permissions on this namespace!" in str(e.value)
    object_meta = readonly_pg_repo.objects.get_object_meta(fruits.objects)[fruits.objects[0]]
    assert object_meta.size != 12345
    with pytest.raises(ProgrammingError) as e:
        readonly_pg_repo.objects.register_objects([object_meta], namespace=REMOTE_NAMESPACE)
    assert "You do not have sufficient permissions on this namespace!" in str(e.value)