grappa-py / grappa

Behavior-oriented, expressive, human-friendly Python assertion library for the 21st century
http://grappa.rtfd.io
MIT License
134 stars 15 forks source link

Custom function assertion #19

Closed h2non closed 7 years ago

h2non commented 7 years ago
should('foo').to.pass_test(lambda subject: subject == 'foo')
expect('foo').to_not.pass_test(lambda subject: subject == 'foo')
h2non commented 7 years ago

Done!