示例#1
0
 def test_coin_save(self):
     game = self.make_game()
     cards = self.make_cards(game.current_player, ArgentSquire(), MagmaRager(), TheCoin())
     possible_plays = PossiblePlays(cards, 1)
     play = possible_plays.plays()[0]
     names = [c.name for c in play.cards]
     self.assertEqual(names, ["Argent Squire"])
示例#2
0
 def test_coin(self):
     game = self.make_game()
     cards = self.make_cards(game.current_player, ArgentSquire(), BloodfenRaptor(), TheCoin())
     possible_plays = PossiblePlays(cards, 1)
     play = possible_plays.plays()[0]
     names = [c.name for c in play.cards]
     self.assertEqual(names, ["The Coin", "Bloodfen Raptor"])
示例#3
0
    def test_will_use_hero_power_with_empty_hand(self):
        game = TestHelpers().make_game()

        self.set_hand(game, 0)
        self.set_mana(game, 0, 10)

        possible = PossiblePlays([], 10)
        play = possible.plays()[0]
        self.assertEqual(play.cards[0].name, "Hero Power")

        game.play_single_turn()
        self.assert_minions(game.players[0], "War Golem")
    def test_will_use_hero_power_with_empty_hand(self):
        game = TestHelpers().make_game()

        self.set_hand(game, 0)
        self.set_mana(game, 0, 10)

        possible = PossiblePlays([], 10)
        play = possible.plays()[0]
        self.assertEqual(play.cards[0].name, "Hero Power")

        game.play_single_turn()
        self.assert_minions(game.players[0], "War Golem")
示例#5
0
 def test_will_not_hero_power_if_not_inevitable(self):
     possible = PossiblePlays([Ysera()], 10)
     play = possible.plays()[0]
     self.assertEqual(play.first_card().name, "Ysera")
示例#6
0
 def test_will_hero_power_first_if_inevitable(self):
     possible = PossiblePlays([DireWolfAlpha()], 10)
     play = possible.plays()[0]
     self.assertEqual(play.first_card().name, "Hero Power")
 def test_will_not_hero_power_if_not_inevitable(self):
     possible = PossiblePlays([Ysera()], 10)
     play = possible.plays()[0]
     self.assertEqual(play.first_card().name, "Ysera")
 def test_will_hero_power_first_if_inevitable(self):
     possible = PossiblePlays([DireWolfAlpha()], 10)
     play = possible.plays()[0]
     self.assertEqual(play.first_card().name, "Hero Power")
    def test_hero_power(self):
        game = self.make_game()
        cards = self.make_cards(game.current_player, ArgentSquire())
        possible_plays = PossiblePlays(cards, 10, allow_hero_power=True)

        self.assertEqual(1, len(possible_plays.plays()))
    def test_hero_power(self):
        game = self.make_game()
        cards = self.make_cards(game.current_player, ArgentSquire())
        possible_plays = PossiblePlays(cards, 10, allow_hero_power=True)

        self.assertEqual(1, len(possible_plays.plays()))
示例#11
0
    def test_hero_power(self):
        cards = [ArgentSquire()]
        possible_plays = PossiblePlays(cards, 10, allow_hero_power=True)

        self.assertEqual(1, len(possible_plays.plays()))
示例#12
0
 def test_will_not_hero_power_if_not_inevitable(self):
     game = self.make_game()
     cards = self.make_cards(game.current_player, Ysera())
     possible = PossiblePlays(cards, 10)
     play = possible.plays()[0]
     self.assertEqual(play.first_card().name, "Ysera")
示例#13
0
 def test_will_hero_power_first_if_inevitable(self):
     game = self.make_game()
     cards = self.make_cards(game.current_player, DireWolfAlpha())
     possible = PossiblePlays(cards, 10)
     play = possible.plays()[0]
     self.assertEqual(play.first_card().name, "Hero Power")