PyHamcrest is a framework for writing matcher objects, allowing you to declaratively define "match" rules.