Welcome to brunns-matchers’s documentation!#

Various custom PyHamcrest matchers.

API Reference#

The “brunns.matchers” package#

The “brunns.matchers.bytestring” module#

The “brunns.matchers.data” module#

The “brunns.matchers.datetime” module#

The “brunns.matchers.dbapi” module#

The “brunns.matchers.html” module#

The “brunns.matchers.mock” module#

The “brunns.matchers.object” module#

The “brunns.matchers.response” module#

The “brunns.matchers.smtp” module#

The “brunns.matchers.url” module#

Installation#

Install from Pypi as usual, using pip , tox, or setup.py.

Provided matchers#

Bytestring#

  • contains_bytestring() - match if bytestring contains another.

JSON#

  • json_matching() - match JSON string.

Date & time#

  • is_weekday() - matches date is it’s a weekday.

Indices and tables#