예제 #1
0
파일: tests.py 프로젝트: darioush/setgame
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()
예제 #2
0
파일: tests.py 프로젝트: darioush/setgame
def test_set_is_not_set():
    assert not Card.is_set(EXAMPLE_NOT_SET)
예제 #3
0
파일: tests.py 프로젝트: darioush/setgame
def test_set_isset():
    assert Card.is_set(EXAMPLE_SET)