def test_de_json_all(self, client, track): json_dict = { 'type_': self.type, 'track': track.to_dict(), 'liked': self.liked } sequence = Sequence.de_json(json_dict, client) assert sequence.type == self.type assert sequence.track == track assert sequence.liked == self.liked
def test_de_json_none(self, client): assert Sequence.de_json({}, client) is None