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