def test_serialization(self): data = self.game.serialize() game2 = Game.deserialize(data) assert self.game == game2 assert self.game.metadata == game2.metadata
def test_serialization(self): data = self.game.serialize() game = Game.deserialize(data) assert game == self.game assert id(game) != id(self.game) assert game.metadata == self.game.metadata