-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db98f88
commit 344b7cc
Showing
5 changed files
with
46 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from random import randint | ||
from bang.characters import Character | ||
from bang.expansions.train_robbery.trains import * | ||
from bang.deck import Deck | ||
from bang.game import Game | ||
from bang.players import Player | ||
import bang.cards as cs | ||
from globals import PendingAction | ||
|
||
from tests import started_game, set_events, current_player, next_player, current_player_with_cards | ||
|
||
|
||
def test_cattle_truck(): | ||
g = started_game() | ||
|
||
g.deck.scrap_pile = [cs.CatBalou(0,1), cs.CatBalou(0,2), cs.CatBalou(0,3)] | ||
p = current_player_with_cards(g, [CattleTruck()]) | ||
p.play_card(0) | ||
|
||
assert p.pending_action == PendingAction.CHOOSE | ||
p.choose(0) | ||
assert p.pending_action == PendingAction.PLAY | ||
assert len(p.hand) == 1 | ||
assert len(g.deck.scrap_pile) == 2 |