def METHOD_NAME(
    db, client, requests_mock, as_prosumer_user1, use_owned_by
):
    mock_assets = mock_asset_response(multiple=True)
    requests_mock.get(
        f"{api_path_assets}?account_id=1", status_code=200, json=mock_assets
    )
    if use_owned_by:
        asset_index = client.get(
            url_for("AssetCrudUI:owned_by", account_id=mock_assets[0]["account_id"])
        )
    else:
        asset_index = client.get(url_for("AssetCrudUI:index"))
    for asset in mock_assets:
        assert asset["name"].encode() in asset_index.data