Newer
Older
NewLang / src / i18n.py
@Jookia Jookia on 3 Aug 2022 392 bytes i18n: Add mutation tests
# SPDX-License-Identifier: LGPL-2.1-only
# Copyright 2022 Jookia <contact@jookia.org>


class Message:
    def __init__(self, id, values):
        self.id = id
        self.values = values

    def __repr__(self):
        return "Message('%s', %s)" % (self.id, self.values)  # pragma: no mutate

    def __eq__(self, other):
        return self.id == other.id and self.values == other.values