def METHOD_NAME(local_engine_empty, readonly_pg_repo):
    # Same as previous but we clone the read-only repo and push to our own namespace
    # to check that the objects we push get their namespaces rewritten to be the unprivileged user, not test.
    destination = clone(readonly_pg_repo)
    destination.images["latest"].checkout()
    destination.run_sql("""UPDATE fruits SET name = 'banana' WHERE fruit_id = 1""")
    destination.commit()
    remote_destination = Repository.from_template(
        readonly_pg_repo,
        namespace=readonly_pg_repo.engine.conn_params["SG_NAMESPACE"],
        engine=readonly_pg_repo.engine,
    )
    destination.upstream = remote_destination
    destination.push(handler="S3")
    object_id = destination.head.get_table("fruits").objects[-1]
    assert (
        remote_destination.objects.get_object_meta([object_id])[object_id].namespace
        == readonly_pg_repo.engine.conn_params["SG_NAMESPACE"]
    )
    # Test we can delete our own repo once we've pushed it
    remote_destination.delete(uncheckout=False)
    assert len(remote_destination.images()) == 0