Matcher LibraryΒΆ

Library of Matcher implementations.

  • Object Matchers
    • equal_to
      • equal_to
    • has_length
      • has_length
    • has_string
      • has_string
    • has_properties/has_property
      • has_properties
        • has_properties
        • has_properties
      • has_property
    • instance_of
      • instance_of
    • none, not_none
      • none
      • not_none
    • same_instance
      • same_instance
    • calling, raises
      • calling
      • raises
  • Number Matchers
    • close_to
      • close_to
    • greater_than, greater_than_or_equal_to, less_than, less_than_or_equal_to
      • greater_than
      • greater_than_or_equal_to
      • less_than
      • less_than_or_equal_to
  • Text Matchers
    • contains_string
      • contains_string
    • ends_with
      • ends_with
    • equal_to_ignoring_case
      • equal_to_ignoring_case
    • equal_to_ignoring_whitespace
      • equal_to_ignoring_whitespace
    • matches_regexp
      • matches_regexp
    • starts_with
      • starts_with
    • string_contains_in_order
      • string_contains_in_order
  • Logical Matchers
    • all_of
      • all_of
    • any_of
      • any_of
    • anything
      • anything
    • is_not
      • is_not
  • Sequence Matchers
    • contains_exactly
      • contains_exactly
    • contains_inanyorder
      • contains_inanyorder
    • has_item, has_items
      • has_items
    • is_in
      • is_in
    • only_contains
      • only_contains
    • empty
      • empty
  • Dictionary Matchers
    • has_entries
      • has_entries
        • has_entries
        • has_entries
    • has_entry
      • has_entry
    • has_key
      • has_key
    • has_value
      • has_value
  • Decorator Matchers
    • described_as
      • described_as
    • is_
      • is_

PyHamcrest

Navigation

  • PyHamcrest Tutorial
  • Writing Custom Matchers
  • Matcher Library
  • Matcher Internals
  • Integration with PyUnit and Other Libraries
  • Core API

Related Topics

  • Documentation overview
    • Previous: Writing Custom Matchers
    • Next: Object Matchers
©2020, hamcrest.org. | Powered by Sphinx 8.3.0 & Alabaster 1.0.0 | Page source