コード例 #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
コード例 #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