kaste / mockito-python

Mockito is a spying framework
MIT License
123 stars 12 forks source link

Documentation: Mocking instances, not just classes #4

Closed lsloan closed 7 years ago

lsloan commented 8 years ago

In the walkthrough, you show how to mock the Dog class, which affects all instances of Dog until unstub() is used. I think it's also important to show that a single instance of a class can be mocked. Add to the documentation examples from https://code.google.com/archive/p/mockito-python/ that show mocking a single instance (rex) of Dog.

kaste commented 8 years ago

It's here http://pythonhosted.org/mockito/nutshell.html at least. Open for PRs as well.

kaste commented 7 years ago

I updated the walk-through.