Ejemplo n.º 1
0
    def test_de_json(self, bot, emoji):
        json_dict = {'value': self.value, 'emoji': emoji}
        dice = Dice.de_json(json_dict, bot)

        assert dice.value == self.value
        assert dice.emoji == emoji
        assert Dice.de_json(None, bot) is None
Ejemplo n.º 2
0
    def test_de_json(self, bot):
        json_dict = {'value': self.value}
        dice = Dice.de_json(json_dict, bot)

        assert dice.value == self.value
        assert Dice.de_json(None, bot) is None