예제 #1
0
파일: tests.py 프로젝트: darioush/setgame
def test_finds_set():
    board = Board()
    # Add irrelevant card
    board.extend([Card(Color.red, Shape.diamond, Shading.solid, Number.two)])
    board.extend(EXAMPLE_SET)
    assert EXAMPLE_SET == board.find_set()
예제 #2
0
파일: tests.py 프로젝트: darioush/setgame
def test_no_set_to_find():
    board = Board()
    board.extend(EXAMPLE_NOT_SET)
    with pytest.raises(NoSetFound):
        board.find_set()
예제 #3
0
파일: tests.py 프로젝트: darioush/setgame
def test_finds_set():
    board = Board()
    board.extend(EXAMPLE_SET)
    assert EXAMPLE_SET == board.find_set()