Ejemplo n.º 1
0
 def test_de_json_none(self, client):
     assert AlbumEvent.de_json({}, client) is None
Ejemplo n.º 2
0
    def test_de_json_all(self, client, album, track):
        json_dict = {'album': album.to_dict(), 'tracks': [track.to_dict()]}
        album_event = AlbumEvent.de_json(json_dict, client)

        assert album_event.album == album
        assert album_event.tracks == [track]