def METHOD_NAME(app):
    """Tests that a repost notification is created on repost  correctly"""
    with app.app_context():
        db = get_db()
    # Insert Playlist with two new tracks and check that a notification is created for the track owners
    now = datetime.now()
    entities = {
        "tracks": [
            {"track_id": 20, "owner_id": 1},
            {"track_id": 10, "owner_id": 2},
            {"track_id": 30, "owner_id": 15},
            {"track_id": 40, "owner_id": 12},
        ],
        "playlists": [
            {
                "playlist_owner_id": 2,
                "created_at": now,
                "updated_at": now,
                "playlist_contents": {
                    "track_ids": [
                        {"time": datetime.timestamp(now), "track": 20},
                        {"time": datetime.timestamp(now), "track": 30},
                        {"time": datetime.timestamp(now), "track": 10},
                        {
                            "time": datetime.timestamp(now - timedelta(minutes=1)),
                            "track": 40,
                        },
                    ]
                },
            },
        ],
    }
    populate_mock_db(db, entities)
    with db.scoped_session() as session:
        notifications: List[Notification] = (
            session.query(Notification).order_by(asc(Notification.specifier)).all()
        )
        assert len(notifications) == 2
        assert (
            notifications[0].group_id
            == "track_added_to_playlist:playlist_id:0:track_id:20"
        )
        assert notifications[0].specifier == "1"
        assert notifications[0].type == "track_added_to_playlist"
        assert notifications[0].slot == None
        assert notifications[0].blocknumber == 0
        assert notifications[0].data == {
            "track_id": 20,
            "playlist_id": 0,
            "playlist_owner_id": 2,
        }
        assert notifications[0].user_ids == [1]
        assert (
            notifications[1].group_id
            == "track_added_to_playlist:playlist_id:0:track_id:30"
        )
        assert notifications[1].specifier == "15"
        assert notifications[1].type == "track_added_to_playlist"
        assert notifications[1].slot == None
        assert notifications[1].blocknumber == 0
        assert notifications[1].data == {
            "track_id": 30,
            "playlist_id": 0,
            "playlist_owner_id": 2,
        }
        assert notifications[1].user_ids == [15]