drslump / pyshould

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

do not require call syntax for non-deferred expectations #11

Closed drslump closed 10 years ago

drslump commented 10 years ago

The following should be allowed:

it(10).should.be_int

currently it requires the following syntax:

it(10).should.be_int()
drslump commented 10 years ago

Not possible to implement, Python doesn't allow for this functionality, when resolving the property (be_int) we don't know if it's followed by a call or not.