def test_invalid_suit_set_rejected(): card = Card(2, 'heart') with pytest.raises(ValueError): card.set_suit('he')
def test_card_suit_setting(): card = Card(2, 'heart') card.set_suit('club') assert 'club' == card.get_suit()