示例#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)