pyforge icon indicating copy to clipboard operation
pyforge copied to clipboard

hybrid mock support for dynamic instances (that use getattr themselves)

Open yalon opened this issue 11 years ago • 0 comments

It would be great if hybrid mock would support wrapping an object that implements getattr as a way to call methods (hint: rpc).

If the object implements __dir__ it would be even more awesome if the hybrid mock will query it and allow these methods to be mocked.

yalon avatar Nov 05 '13 13:11 yalon