Ejemplo n.º 1
0
def test_has_card_in_hand__should_return_false():
    player = Player()
    player.hand = [
        all_cards.COCKATRICE, all_cards.COCKATRICE, all_cards.COCKATRICE,
        all_cards.COCKATRICE, all_cards.BLOBRA
    ]
    card = 'Zell'

    actual = utilities.has_card_in_hand(player, card)

    assert actual is False
Ejemplo n.º 2
0
def test_has_card_in_hand__should_return_true():
    player = Player()
    player.hand = [
        all_cards.COCKATRICE, all_cards.COCKATRICE, all_cards.COCKATRICE,
        all_cards.COCKATRICE, all_cards.BLOBRA
    ]
    card = 'Blobra'

    actual = utilities.has_card_in_hand(player, card)

    assert actual is True