コード例 #1
0
def test_invalid_suit_set_rejected():
    card = Card(2, 'heart')
    with pytest.raises(ValueError):
        card.set_suit('he')
コード例 #2
0
def test_card_suit_setting():
    card = Card(2, 'heart')
    card.set_suit('club')
    assert 'club' == card.get_suit()