pyforge
pyforge copied to clipboard
hybrid mock support for dynamic instances (that use getattr themselves)
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.