has207/flexmock — Issue #66: Resetting subclass mock methods
Author: bkabrda
Created: 2012-02-12 21:06:33+00:00
State: open

Hi!
First of all, thank you for creating this library!
I have an issue with resetting a subclass of a class during unittests: When I have a subclass and mock its method, that is also defined in the superclass, the flexmock_teardown resets the method to the superclass's one, not to the subclasses one. You can see a simple reproducer at [1].
When the test order is test_1, test_2, then the output is
1, 'a'
but it should be
1, 'b'.

[1] https://gist.github.com/1810789