Ejemplo n.º 1
0
    def _assertClone(self, client=None):
        vlot = self.vlot
        deck_id = self.deck_id
        expr_deck = self.expr_deck
        card_and_appearance = self.card_and_appearance
        player_id = self.player_id

        with self.assertRaises(ViewableGlot.GetDeckError):
            vclone(deck_id, player_id, client)

        vinit(deck_id, card_and_appearance, client)
        cloned_deck = vclone(deck_id, player_id, client)
        self.assertEqual(cloned_deck, expr_deck)
        deck = vlot._get_player_deck(player_id, deck_id)
        self.assertEqual(deck, expr_deck)
Ejemplo n.º 2
0
 def clone(self, *args, **kwargs):
     return glot.vclone(client=self.redis, *args, **kwargs)
Ejemplo n.º 3
0
 def clone(self, *args, **kwargs):
     return glot.vclone(client=self.redis, *args, **kwargs)