Example #1
0
    def _assertIncr(self, client=None):
        deck_id = self.deck_id
        expr_deck = self.expr_deck.copy()
        card_and_appearance = self.card_and_appearance
        player_id = self.player_id

        card_id = 1
        value = 1

        vinit(deck_id, card_and_appearance, client)

        expr_deck[card_id] += value
        deck = vincr(deck_id, card_id, value, player_id, client)
        self.assertEqual(deck, expr_deck)

        deck = vincr(deck_id, 999, value, player_id, client)
        self.assertEqual(deck[999], value)
Example #2
0
 def incr(self, *args, **kwargs):
     return glot.vincr(client=self.redis, *args, **kwargs)
Example #3
0
 def incr(self, *args, **kwargs):
     return glot.vincr(client=self.redis, *args, **kwargs)