Beispiel #1
0
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()
Beispiel #2
0
def test_no_set_to_find():
    board = Board()
    board.extend(EXAMPLE_NOT_SET)
    with pytest.raises(NoSetFound):
        board.find_set()
Beispiel #3
0
def test_finds_set():
    board = Board()
    board.extend(EXAMPLE_SET)
    assert EXAMPLE_SET == board.find_set()