예제 #1
0
def test_deck_getDiscard_empty():
    discardDeck = Deck()
    cards = [Card(3, "5", "Yellow"), Card(4, "6", "Green")]
    deck = Deck(discardDeck, cards)

    assert deck.getDiscard() == None
예제 #2
0
def test_deck_getDiscard():
    discardDeck = Deck(None, [Card(1, "3", "Red"), Card(2, "4", "Blue")])
    cards = [Card(3, "5", "Yellow"), Card(4, "6", "Green")]
    deck = Deck(discardDeck, cards)

    assert str(deck.getDiscard()) == "Blue 4"