Esempio n. 1
0
 def test_playing_kingdom_card_woodcutter_adds_no_cards_to_hand(self):
     board = Board()
     player = Player(board)
     turn = Turn(player, board)
     card = KingdomCard('Woodcutter')
     card.play(turn)
     self.assertEqual(0, len(turn.player.current_hand))
Esempio n. 2
0
 def test_playing_kingdom_card_smithy_adds_three_cards_to_hand(self):
     board = Board()
     player = Player(board)
     turn = Turn(player, board)
     card = KingdomCard('Smithy')
     card.play(turn)
     self.assertEqual(3, len(turn.player.current_hand))
Esempio n. 3
0
 def test_playing_kingdom_card_woodcutter_adds_no_actions_to_turn(self):
     board = Board()
     player = Player(board)
     turn = Turn(player, board)
     card = KingdomCard('Woodcutter')
     card.play(turn)
     self.assertEqual(1, turn.actions)
Esempio n. 4
0
 def test_playing_kingdom_card_village_adds_card_to_hand(self):
     board = Board()
     player = Player(board)
     turn = Turn(player, board)
     card = KingdomCard('Village')
     card.play(turn)
     self.assertEqual(1, len(turn.player.current_hand))
Esempio n. 5
0
 def test_playing_kingdom_card_village_adds_two_actions_to_turn(self):
     board = Board()
     player = Player(board)
     turn = Turn(player, board)
     card = KingdomCard('Village')
     card.play(turn)
     self.assertEqual(3, turn.actions)