Exemple #1
0
def test_play():
    game = SetGame()
    sets = game.play()
    assert all(Card.is_set(set) for set in sets)
    assert len(game.deck) == 0
    with pytest.raises(NoSetFound):
        game.board.find_set()
Exemple #2
0
def test_set_is_not_set():
    assert not Card.is_set(EXAMPLE_NOT_SET)
Exemple #3
0
def test_set_isset():
    assert Card.is_set(EXAMPLE_SET)