drslump / pyshould

Should style asserts based on pyhamcrest
MIT License
38 stars 7 forks source link

within matcher #5

Open drslump opened 10 years ago

drslump commented 10 years ago

Custom matcher to check if a value is within limits

a | should.be_within(10, 20)  # 10 <= a <= 20