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

Expect and Should have unexpected behavior with parens and .be.true or .be.false #53

Closed anachronic closed 3 years ago

anachronic commented 4 years ago

Allow me to explain.

The following assertion fails as expected:

        True | should.be.false

Neither of the following fail:

        expect(True).to.be.false
        should(True).be.false

I think this is a bug, and I'd love to contribute if pointers are given