Пример #1
0
def test_won_true_for_winner():
	game = Game(no_shuffle=True)

	for i, card in enumerate(game.cards):
		game.piles[(i / 13) + 2].add_card(card)

	assert_true(game.won())
Пример #2
0
def test_won_false_for_non_winner():
	game = Game(no_shuffle=True)
	game.deal()

	assert_false(game.won())