MCPcopy Create free account
hub / github.com/asweigart/PythonStdioGames / test_getDeck

Function test_getDeck

tests/test_blackjack.py:67–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65
66
67def test_getDeck():
68 deck = blackjack.getDeck()
69 assert len(deck) == 52
70 for rank in range(2, 11):
71 for suit in (blackjack.HEARTS, blackjack.DIAMONDS, blackjack.CLUBS, blackjack.SPADES):
72 assert (str(rank), suit) in deck
73
74 for rank in ('A', 'J', 'Q', 'K'):
75 for suit in (blackjack.HEARTS, blackjack.DIAMONDS, blackjack.CLUBS, blackjack.SPADES):
76 assert (str(rank), suit) in deck
77
78
79def test_displayHands(capsys):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected