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()
def test_set_is_not_set(): assert not Card.is_set(EXAMPLE_NOT_SET)
def test_set_isset(): assert Card.is_set(EXAMPLE_SET)