def test_de_json_all(self, client, playlist):
        json_dict = {
            'timestamp': self.timestamp,
            'id_': self.id,
            'playlist': playlist.to_dict()
        }
        playlists_likes = PlaylistsLikes.de_json(json_dict, client)

        assert playlists_likes.timestamp == self.timestamp
        assert playlists_likes.id == self.id
        assert playlists_likes.playlist == playlist
    def test_de_json_required(self, client):
        json_dict = {'timestamp': self.timestamp}
        playlists_likes = PlaylistsLikes.de_json(json_dict, client)

        assert playlists_likes.timestamp == self.timestamp
 def test_de_json_none(self, client):
     assert PlaylistsLikes.de_json({}, client) is None