nsigustavo / ludibrio

Platform for test doubles in Python (mocks, stubs, Spy, and dummies)
113 stars 15 forks source link

Stub object throw an exception after comparsion #15

Open grapemix opened 11 years ago

grapemix commented 11 years ago

I have set up a stub object and assign a fxn as property. But when other part of the code try to compare the stub object with some given atomic value, ludibrio will try to call the given atomic value, and hence the stub object will throw an exception because the atomic value from the external library code is not callable. I fork ludibrio and fixed it, please pull.