<gh_stars>10-100
"""
Matches the length of a collection.
"""

from hamcrest import has_length

from .base_resolution import BaseResolution


class HasLength(BaseResolution):
    """Match against a collection with a specific length.

    Examples::

        the_actor.should(
            See.the(Selected.options_from(INDUSTRIES), HasLength(5))
        )
    """

    line = "a collection with {expectation} items in it"
    matcher_function = has_length

"""
Matches the length of a collection.
"""

from hamcrest import has_length

from .base_resolution import BaseResolution


class HasLength(BaseResolution):
    """Match against a collection with a specific length.

    Examples::

        the_actor.should(
            See.the(Selected.options_from(INDUSTRIES), HasLength(5))
        )
    """

    line = "a collection with {expectation} items in it"
    matcher_function = has_length
Matches the length of a collection. Match against a collection with a specific length.      Examples::          the_actor.should(             See.the(Selected.options_from(INDUSTRIES), HasLength(5))         )