<gh_stars>1-10
from hamcrest.core.assert_that import assert_that
from hamcrest.library import contains_exactly, has_entries


def assert_exception_has_errors(exc_info, line_numbers, description) -> None:
    assert_that(
        exc_info.value.errors,
        contains_exactly(  # pyre-ignore[6]
            *[
                has_entries({"description": description, "lineNumber": line_number})
                for line_number in line_numbers
            ]
        ),
    )

from hamcrest.core.assert_that import assert_that
from hamcrest.library import contains_exactly, has_entries


def assert_exception_has_errors(exc_info, line_numbers, description) -> None:
    assert_that(
        exc_info.value.errors,
        contains_exactly(  # pyre-ignore[6]
            *[
                has_entries({"description": description, "lineNumber": line_number})
                for line_number in line_numbers
            ]
        ),
    )
# pyre-ignore[6]